Open sidebar with location hash
This commit is contained in:
parent
f999f167b1
commit
76bc9fcddf
2 changed files with 11 additions and 15 deletions
|
@ -23,9 +23,9 @@ class Sidebar extends Class
|
||||||
@original_set_site_info = @wrapper.setSiteInfo # We going to override this, save the original
|
@original_set_site_info = @wrapper.setSiteInfo # We going to override this, save the original
|
||||||
|
|
||||||
# Start in opened state for debugging
|
# Start in opened state for debugging
|
||||||
if false
|
if window.top.location.hash == "#ZeroNet:OpenSidebar"
|
||||||
@startDrag()
|
@startDrag()
|
||||||
@moved()
|
@moved("x")
|
||||||
@fixbutton_targetx = @fixbutton_initx - @width
|
@fixbutton_targetx = @fixbutton_initx - @width
|
||||||
@stopDrag()
|
@stopDrag()
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
/* ---- plugins/Sidebar/media/Class.coffee ---- */
|
/* ---- Class.coffee ---- */
|
||||||
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
@ -55,8 +55,7 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
/* ---- Console.coffee ---- */
|
||||||
/* ---- plugins/Sidebar/media/Console.coffee ---- */
|
|
||||||
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
@ -284,8 +283,7 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
/* ---- Menu.coffee ---- */
|
||||||
/* ---- plugins/Sidebar/media/Menu.coffee ---- */
|
|
||||||
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
@ -367,8 +365,7 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
/* ---- RateLimit.coffee ---- */
|
||||||
/* ---- plugins/Sidebar/media/RateLimit.coffee ---- */
|
|
||||||
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
@ -396,8 +393,7 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
/* ---- Scrollable.js ---- */
|
||||||
/* ---- plugins/Sidebar/media/Scrollable.js ---- */
|
|
||||||
|
|
||||||
|
|
||||||
/* via http://jsfiddle.net/elGrecode/00dgurnn/ */
|
/* via http://jsfiddle.net/elGrecode/00dgurnn/ */
|
||||||
|
@ -492,7 +488,7 @@ window.initScrollable = function () {
|
||||||
return updateHeight;
|
return updateHeight;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ---- plugins/Sidebar/media/Sidebar.coffee ---- */
|
/* ---- Sidebar.coffee ---- */
|
||||||
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
@ -534,9 +530,9 @@ window.initScrollable = function () {
|
||||||
this.globe = null;
|
this.globe = null;
|
||||||
this.preload_html = null;
|
this.preload_html = null;
|
||||||
this.original_set_site_info = this.wrapper.setSiteInfo;
|
this.original_set_site_info = this.wrapper.setSiteInfo;
|
||||||
if (false) {
|
if (window.top.location.hash === "#ZeroNet:OpenSidebar") {
|
||||||
this.startDrag();
|
this.startDrag();
|
||||||
this.moved();
|
this.moved("x");
|
||||||
this.fixbutton_targetx = this.fixbutton_initx - this.width;
|
this.fixbutton_targetx = this.fixbutton_initx - this.width;
|
||||||
this.stopDrag();
|
this.stopDrag();
|
||||||
}
|
}
|
||||||
|
@ -1279,7 +1275,7 @@ window.initScrollable = function () {
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
|
||||||
/* ---- plugins/Sidebar/media/morphdom.js ---- */
|
/* ---- morphdom.js ---- */
|
||||||
|
|
||||||
|
|
||||||
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.morphdom = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.morphdom = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
||||||
|
|
Loading…
Reference in a new issue