Small order change.
Loose file and cruft.
This commit is contained in:
parent
c40b978e1f
commit
cbacb28fa1
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* appchan x - Version 2.0.0 - 2013-05-07
|
* appchan x - Version 2.0.0 - 2013-05-08
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* appchan x - Version 2.0.0 - 2013-05-07
|
* appchan x - Version 2.0.0 - 2013-05-08
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||||
@ -3645,7 +3645,7 @@
|
|||||||
|
|
||||||
Header = {
|
Header = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, footerToggler, headerToggler,
|
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, headerToggler,
|
||||||
_this = this;
|
_this = this;
|
||||||
|
|
||||||
this.menu = new UI.Menu('header');
|
this.menu = new UI.Menu('header');
|
||||||
@ -3665,9 +3665,6 @@
|
|||||||
customNavToggler = $.el('label', {
|
customNavToggler = $.el('label', {
|
||||||
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
|
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
|
||||||
});
|
});
|
||||||
footerToggler = $.el('label', {
|
|
||||||
innerHTML: "<input type=checkbox " + (!Conf['Bottom Board List'] ? 'checked' : '') + "> Hide bottom board list"
|
|
||||||
});
|
|
||||||
editCustomNav = $.el('a', {
|
editCustomNav = $.el('a', {
|
||||||
textContent: 'Edit custom board navigation',
|
textContent: 'Edit custom board navigation',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
@ -3675,17 +3672,15 @@
|
|||||||
this.barFixedToggler = barFixedToggler.firstElementChild;
|
this.barFixedToggler = barFixedToggler.firstElementChild;
|
||||||
this.barPositionToggler = barPositionToggler.firstElementChild;
|
this.barPositionToggler = barPositionToggler.firstElementChild;
|
||||||
this.headerToggler = headerToggler.firstElementChild;
|
this.headerToggler = headerToggler.firstElementChild;
|
||||||
this.footerToggler = footerToggler.firstElementChild;
|
|
||||||
this.customNavToggler = customNavToggler.firstElementChild;
|
this.customNavToggler = customNavToggler.firstElementChild;
|
||||||
|
this.setBarFixed(Conf['Fixed Header']);
|
||||||
|
this.setBarVisibility(Conf['Header auto-hide']);
|
||||||
$.on(this.menuButton, 'click', this.menuToggle);
|
$.on(this.menuButton, 'click', this.menuToggle);
|
||||||
$.on(this.barFixedToggler, 'change', this.toggleBarFixed);
|
$.on(this.barFixedToggler, 'change', this.toggleBarFixed);
|
||||||
$.on(this.barPositionToggler, 'change', this.toggleBarPosition);
|
$.on(this.barPositionToggler, 'change', this.toggleBarPosition);
|
||||||
$.on(this.headerToggler, 'change', this.toggleBarVisibility);
|
$.on(this.headerToggler, 'change', this.toggleBarVisibility);
|
||||||
$.on(this.footerToggler, 'change', this.toggleFooterVisibility);
|
|
||||||
$.on(this.customNavToggler, 'change', this.toggleCustomNav);
|
$.on(this.customNavToggler, 'change', this.toggleCustomNav);
|
||||||
$.on(editCustomNav, 'click', this.editCustomNav);
|
$.on(editCustomNav, 'click', this.editCustomNav);
|
||||||
this.setBarFixed(Conf['Fixed Header']);
|
|
||||||
this.setBarVisibility(Conf['Header auto-hide']);
|
|
||||||
$.sync('Fixed Header', Header.setBarFixed);
|
$.sync('Fixed Header', Header.setBarFixed);
|
||||||
$.sync('Bottom Header', Header.setBarPosition);
|
$.sync('Bottom Header', Header.setBarPosition);
|
||||||
$.event('AddMenuEntry', {
|
$.event('AddMenuEntry', {
|
||||||
@ -3701,8 +3696,6 @@
|
|||||||
el: headerToggler
|
el: headerToggler
|
||||||
}, {
|
}, {
|
||||||
el: barPositionToggler
|
el: barPositionToggler
|
||||||
}, {
|
|
||||||
el: footerToggler
|
|
||||||
}, {
|
}, {
|
||||||
el: customNavToggler
|
el: customNavToggler
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* appchan x - Version 2.0.0 - 2013-05-07
|
* appchan x - Version 2.0.0 - 2013-05-08
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||||
@ -3641,7 +3641,7 @@
|
|||||||
|
|
||||||
Header = {
|
Header = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, footerToggler, headerToggler,
|
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, headerToggler,
|
||||||
_this = this;
|
_this = this;
|
||||||
|
|
||||||
this.menu = new UI.Menu('header');
|
this.menu = new UI.Menu('header');
|
||||||
@ -3661,9 +3661,6 @@
|
|||||||
customNavToggler = $.el('label', {
|
customNavToggler = $.el('label', {
|
||||||
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
|
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
|
||||||
});
|
});
|
||||||
footerToggler = $.el('label', {
|
|
||||||
innerHTML: "<input type=checkbox " + (!Conf['Bottom Board List'] ? 'checked' : '') + "> Hide bottom board list"
|
|
||||||
});
|
|
||||||
editCustomNav = $.el('a', {
|
editCustomNav = $.el('a', {
|
||||||
textContent: 'Edit custom board navigation',
|
textContent: 'Edit custom board navigation',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
@ -3671,17 +3668,15 @@
|
|||||||
this.barFixedToggler = barFixedToggler.firstElementChild;
|
this.barFixedToggler = barFixedToggler.firstElementChild;
|
||||||
this.barPositionToggler = barPositionToggler.firstElementChild;
|
this.barPositionToggler = barPositionToggler.firstElementChild;
|
||||||
this.headerToggler = headerToggler.firstElementChild;
|
this.headerToggler = headerToggler.firstElementChild;
|
||||||
this.footerToggler = footerToggler.firstElementChild;
|
|
||||||
this.customNavToggler = customNavToggler.firstElementChild;
|
this.customNavToggler = customNavToggler.firstElementChild;
|
||||||
|
this.setBarFixed(Conf['Fixed Header']);
|
||||||
|
this.setBarVisibility(Conf['Header auto-hide']);
|
||||||
$.on(this.menuButton, 'click', this.menuToggle);
|
$.on(this.menuButton, 'click', this.menuToggle);
|
||||||
$.on(this.barFixedToggler, 'change', this.toggleBarFixed);
|
$.on(this.barFixedToggler, 'change', this.toggleBarFixed);
|
||||||
$.on(this.barPositionToggler, 'change', this.toggleBarPosition);
|
$.on(this.barPositionToggler, 'change', this.toggleBarPosition);
|
||||||
$.on(this.headerToggler, 'change', this.toggleBarVisibility);
|
$.on(this.headerToggler, 'change', this.toggleBarVisibility);
|
||||||
$.on(this.footerToggler, 'change', this.toggleFooterVisibility);
|
|
||||||
$.on(this.customNavToggler, 'change', this.toggleCustomNav);
|
$.on(this.customNavToggler, 'change', this.toggleCustomNav);
|
||||||
$.on(editCustomNav, 'click', this.editCustomNav);
|
$.on(editCustomNav, 'click', this.editCustomNav);
|
||||||
this.setBarFixed(Conf['Fixed Header']);
|
|
||||||
this.setBarVisibility(Conf['Header auto-hide']);
|
|
||||||
$.sync('Fixed Header', Header.setBarFixed);
|
$.sync('Fixed Header', Header.setBarFixed);
|
||||||
$.sync('Bottom Header', Header.setBarPosition);
|
$.sync('Bottom Header', Header.setBarPosition);
|
||||||
$.event('AddMenuEntry', {
|
$.event('AddMenuEntry', {
|
||||||
@ -3697,8 +3692,6 @@
|
|||||||
el: headerToggler
|
el: headerToggler
|
||||||
}, {
|
}, {
|
||||||
el: barPositionToggler
|
el: barPositionToggler
|
||||||
}, {
|
|
||||||
el: footerToggler
|
|
||||||
}, {
|
}, {
|
||||||
el: customNavToggler
|
el: customNavToggler
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
BIN
builds/crx.crx
BIN
builds/crx.crx
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* appchan x - Version 2.0.0 - 2013-05-07
|
* appchan x - Version 2.0.0 - 2013-05-08
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||||
@ -3643,7 +3643,7 @@
|
|||||||
|
|
||||||
Header = {
|
Header = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, footerToggler, headerToggler,
|
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, headerToggler,
|
||||||
_this = this;
|
_this = this;
|
||||||
|
|
||||||
this.menu = new UI.Menu('header');
|
this.menu = new UI.Menu('header');
|
||||||
@ -3663,9 +3663,6 @@
|
|||||||
customNavToggler = $.el('label', {
|
customNavToggler = $.el('label', {
|
||||||
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
|
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
|
||||||
});
|
});
|
||||||
footerToggler = $.el('label', {
|
|
||||||
innerHTML: "<input type=checkbox " + (!Conf['Bottom Board List'] ? 'checked' : '') + "> Hide bottom board list"
|
|
||||||
});
|
|
||||||
editCustomNav = $.el('a', {
|
editCustomNav = $.el('a', {
|
||||||
textContent: 'Edit custom board navigation',
|
textContent: 'Edit custom board navigation',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
@ -3673,17 +3670,15 @@
|
|||||||
this.barFixedToggler = barFixedToggler.firstElementChild;
|
this.barFixedToggler = barFixedToggler.firstElementChild;
|
||||||
this.barPositionToggler = barPositionToggler.firstElementChild;
|
this.barPositionToggler = barPositionToggler.firstElementChild;
|
||||||
this.headerToggler = headerToggler.firstElementChild;
|
this.headerToggler = headerToggler.firstElementChild;
|
||||||
this.footerToggler = footerToggler.firstElementChild;
|
|
||||||
this.customNavToggler = customNavToggler.firstElementChild;
|
this.customNavToggler = customNavToggler.firstElementChild;
|
||||||
|
this.setBarFixed(Conf['Fixed Header']);
|
||||||
|
this.setBarVisibility(Conf['Header auto-hide']);
|
||||||
$.on(this.menuButton, 'click', this.menuToggle);
|
$.on(this.menuButton, 'click', this.menuToggle);
|
||||||
$.on(this.barFixedToggler, 'change', this.toggleBarFixed);
|
$.on(this.barFixedToggler, 'change', this.toggleBarFixed);
|
||||||
$.on(this.barPositionToggler, 'change', this.toggleBarPosition);
|
$.on(this.barPositionToggler, 'change', this.toggleBarPosition);
|
||||||
$.on(this.headerToggler, 'change', this.toggleBarVisibility);
|
$.on(this.headerToggler, 'change', this.toggleBarVisibility);
|
||||||
$.on(this.footerToggler, 'change', this.toggleFooterVisibility);
|
|
||||||
$.on(this.customNavToggler, 'change', this.toggleCustomNav);
|
$.on(this.customNavToggler, 'change', this.toggleCustomNav);
|
||||||
$.on(editCustomNav, 'click', this.editCustomNav);
|
$.on(editCustomNav, 'click', this.editCustomNav);
|
||||||
this.setBarFixed(Conf['Fixed Header']);
|
|
||||||
this.setBarVisibility(Conf['Header auto-hide']);
|
|
||||||
$.sync('Fixed Header', Header.setBarFixed);
|
$.sync('Fixed Header', Header.setBarFixed);
|
||||||
$.sync('Bottom Header', Header.setBarPosition);
|
$.sync('Bottom Header', Header.setBarPosition);
|
||||||
$.event('AddMenuEntry', {
|
$.event('AddMenuEntry', {
|
||||||
@ -3699,8 +3694,6 @@
|
|||||||
el: headerToggler
|
el: headerToggler
|
||||||
}, {
|
}, {
|
||||||
el: barPositionToggler
|
el: barPositionToggler
|
||||||
}, {
|
|
||||||
el: footerToggler
|
|
||||||
}, {
|
}, {
|
||||||
el: customNavToggler
|
el: customNavToggler
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
2.0.0
|
|
||||||
@ -13,8 +13,6 @@ Header =
|
|||||||
innerHTML: '<input type=checkbox name="Bottom header"> Bottom header'
|
innerHTML: '<input type=checkbox name="Bottom header"> Bottom header'
|
||||||
customNavToggler = $.el 'label',
|
customNavToggler = $.el 'label',
|
||||||
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
|
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
|
||||||
footerToggler = $.el 'label',
|
|
||||||
innerHTML: "<input type=checkbox #{unless Conf['Bottom Board List'] then 'checked' else ''}> Hide bottom board list"
|
|
||||||
editCustomNav = $.el 'a',
|
editCustomNav = $.el 'a',
|
||||||
textContent: 'Edit custom board navigation'
|
textContent: 'Edit custom board navigation'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
@ -22,20 +20,18 @@ Header =
|
|||||||
@barFixedToggler = barFixedToggler.firstElementChild
|
@barFixedToggler = barFixedToggler.firstElementChild
|
||||||
@barPositionToggler = barPositionToggler.firstElementChild
|
@barPositionToggler = barPositionToggler.firstElementChild
|
||||||
@headerToggler = headerToggler.firstElementChild
|
@headerToggler = headerToggler.firstElementChild
|
||||||
@footerToggler = footerToggler.firstElementChild
|
|
||||||
@customNavToggler = customNavToggler.firstElementChild
|
@customNavToggler = customNavToggler.firstElementChild
|
||||||
|
|
||||||
|
@setBarFixed Conf['Fixed Header']
|
||||||
|
@setBarVisibility Conf['Header auto-hide']
|
||||||
|
|
||||||
$.on @menuButton, 'click', @menuToggle
|
$.on @menuButton, 'click', @menuToggle
|
||||||
$.on @barFixedToggler, 'change', @toggleBarFixed
|
$.on @barFixedToggler, 'change', @toggleBarFixed
|
||||||
$.on @barPositionToggler, 'change', @toggleBarPosition
|
$.on @barPositionToggler, 'change', @toggleBarPosition
|
||||||
$.on @headerToggler, 'change', @toggleBarVisibility
|
$.on @headerToggler, 'change', @toggleBarVisibility
|
||||||
$.on @footerToggler, 'change', @toggleFooterVisibility
|
|
||||||
$.on @customNavToggler, 'change', @toggleCustomNav
|
$.on @customNavToggler, 'change', @toggleCustomNav
|
||||||
$.on editCustomNav, 'click', @editCustomNav
|
$.on editCustomNav, 'click', @editCustomNav
|
||||||
|
|
||||||
@setBarFixed Conf['Fixed Header']
|
|
||||||
@setBarVisibility Conf['Header auto-hide']
|
|
||||||
|
|
||||||
$.sync 'Fixed Header', Header.setBarFixed
|
$.sync 'Fixed Header', Header.setBarFixed
|
||||||
$.sync 'Bottom Header', Header.setBarPosition
|
$.sync 'Bottom Header', Header.setBarPosition
|
||||||
|
|
||||||
@ -48,7 +44,6 @@ Header =
|
|||||||
{el: barFixedToggler}
|
{el: barFixedToggler}
|
||||||
{el: headerToggler}
|
{el: headerToggler}
|
||||||
{el: barPositionToggler}
|
{el: barPositionToggler}
|
||||||
{el: footerToggler}
|
|
||||||
{el: customNavToggler}
|
{el: customNavToggler}
|
||||||
{el: editCustomNav}
|
{el: editCustomNav}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user