MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / Sidebar

Function Sidebar

plugins/Sidebar/media/all.js:504–539  ·  view source on GitHub ↗
(wrapper1)

Source from the content-addressed store, hash-verified

502 extend(Sidebar, superClass);
503
504 function Sidebar(wrapper1) {
505 this.wrapper = wrapper1;
506 this.unloadGlobe = bind(this.unloadGlobe, this);
507 this.displayGlobe = bind(this.displayGlobe, this);
508 this.loadGlobe = bind(this.loadGlobe, this);
509 this.animDrag = bind(this.animDrag, this);
510 this.setHtmlTag = bind(this.setHtmlTag, this);
511 this.waitMove = bind(this.waitMove, this);
512 this.resized = bind(this.resized, this);
513 this.tag = null;
514 this.container = null;
515 this.opened = false;
516 this.width = 410;
517 this.console = new Console(this);
518 this.fixbutton = $(".fixbutton");
519 this.fixbutton_addx = 0;
520 this.fixbutton_addy = 0;
521 this.fixbutton_initx = 0;
522 this.fixbutton_inity = 15;
523 this.fixbutton_targetx = 0;
524 this.move_lock = null;
525 this.page_width = $(window).width();
526 this.page_height = $(window).height();
527 this.frame = $("#inner-iframe");
528 this.initFixbutton();
529 this.dragStarted = 0;
530 this.globe = null;
531 this.preload_html = null;
532 this.original_set_site_info = this.wrapper.setSiteInfo;
533 if (window.top.location.hash === "#ZeroNet:OpenSidebar") {
534 this.startDrag();
535 this.moved("x");
536 this.fixbutton_targetx = this.fixbutton_initx - this.width;
537 this.stopDrag();
538 }
539 }
540
541 Sidebar.prototype.initFixbutton = function() {
542 this.fixbutton.on("mousedown touchstart", (function(_this) {

Callers

nothing calls this directly

Calls 2

bindFunction · 0.70
$Function · 0.50

Tested by

no test coverage detected