Open sidebar with location hash

This commit is contained in:
shortcutme 2019-09-02 14:17:35 +02:00
parent f999f167b1
commit 76bc9fcddf
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 11 additions and 15 deletions

View file

@ -23,9 +23,9 @@ class Sidebar extends Class
@original_set_site_info = @wrapper.setSiteInfo # We going to override this, save the original
# Start in opened state for debugging
if false
if window.top.location.hash == "#ZeroNet:OpenSidebar"
@startDrag()
@moved()
@moved("x")
@fixbutton_targetx = @fixbutton_initx - @width
@stopDrag()

View file

@ -1,5 +1,5 @@
/* ---- plugins/Sidebar/media/Class.coffee ---- */
/* ---- Class.coffee ---- */
(function() {
@ -55,8 +55,7 @@
}).call(this);
/* ---- plugins/Sidebar/media/Console.coffee ---- */
/* ---- Console.coffee ---- */
(function() {
@ -284,8 +283,7 @@
}).call(this);
/* ---- plugins/Sidebar/media/Menu.coffee ---- */
/* ---- Menu.coffee ---- */
(function() {
@ -367,8 +365,7 @@
}).call(this);
/* ---- plugins/Sidebar/media/RateLimit.coffee ---- */
/* ---- RateLimit.coffee ---- */
(function() {
@ -396,8 +393,7 @@
}).call(this);
/* ---- plugins/Sidebar/media/Scrollable.js ---- */
/* ---- Scrollable.js ---- */
/* via http://jsfiddle.net/elGrecode/00dgurnn/ */
@ -492,7 +488,7 @@ window.initScrollable = function () {
return updateHeight;
};
/* ---- plugins/Sidebar/media/Sidebar.coffee ---- */
/* ---- Sidebar.coffee ---- */
(function() {
@ -534,9 +530,9 @@ window.initScrollable = function () {
this.globe = null;
this.preload_html = null;
this.original_set_site_info = this.wrapper.setSiteInfo;
if (false) {
if (window.top.location.hash === "#ZeroNet:OpenSidebar") {
this.startDrag();
this.moved();
this.moved("x");
this.fixbutton_targetx = this.fixbutton_initx - this.width;
this.stopDrag();
}
@ -1279,7 +1275,7 @@ window.initScrollable = function () {
}).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){