Skip to content
Snippets Groups Projects
Select Git revision
  • 366ba8ab99ccc9f7761d1ff3af86c5f6bc99f785
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
41 results

install-dependencies.sh

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    app.js 40.53 KiB
    /*
     * This program is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Affero General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * (at your option) any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU Affero General Public License for more details.
     *
     * You should have received a copy of the GNU Affero General Public License
     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
     */
    var firmwarewizard = function() {
      var app = {};
    
      // helper functions
      function $(s) {
        return document.querySelector(s);
      }
    
      function toggleClass(e, cssClass) {
        setClass(e, cssClass, !hasClass(e, cssClass));
      }
    
      function hasClass(e, cssClass) {
        var searchstring = (' ' + e.className + ' ').replace(/[\n\t]/g, " ");
        return (searchstring.indexOf(' ' + cssClass+ ' ') !== -1);
      }
    
      function setClass(e, cssClass, active) {
        if (active && !hasClass(e, cssClass)) {
          e.className = (e.className+' '+cssClass).trim();
        } else if (!active && hasClass(e, cssClass)) {
          e.className = e.className.replace(cssClass, '');
        }
      }
    
      function show_inline(s) {
        $(s).style.display = 'inline-block';
      }
    
      function show_block(s) {
        $(s).style.display = 'block';
      }
    
      function hide(s) {
        $(s).style.display = 'none';
      }
    
      function sortCaseInsensitive(a, b) {
    	return a.localeCompare(b, 'en', {'sensitivity': 'base'});
      }
    
      // Object.values() replacement
      function ObjectValues(obj) {
        return Object.keys(obj).map(function(key) { return obj[key]; });
      }
    
      function isEmptyObject(obj) {
          for (var name in obj) {
              return false;
          }
          return true;
      }
    
      function scrollDown() {
        try {
          window.scrollBy({