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

Function Fixbutton

src/Ui/media/all.js:487–524  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

485
486 Fixbutton = (function() {
487 function Fixbutton() {
488 this.dragging = false;
489 $(".fixbutton-bg").on("mouseover", function() {
490 $(".fixbutton-bg").stop().animate({
491 "scale": 0.7
492 }, 800, "easeOutElastic");
493 $(".fixbutton-burger").stop().animate({
494 "opacity": 1.5,
495 "left": 0
496 }, 800, "easeOutElastic");
497 return $(".fixbutton-text").stop().animate({
498 "opacity": 0,
499 "left": 20
500 }, 300, "easeOutCubic");
501 });
502 $(".fixbutton-bg").on("mouseout", function() {
503 if ($(".fixbutton").hasClass("dragging")) {
504 return true;
505 }
506 $(".fixbutton-bg").stop().animate({
507 "scale": 0.6
508 }, 300, "easeOutCubic");
509 $(".fixbutton-burger").stop().animate({
510 "opacity": 0,
511 "left": -20
512 }, 300, "easeOutCubic");
513 return $(".fixbutton-text").stop().animate({
514 "opacity": 0.9,
515 "left": 0
516 }, 300, "easeOutBack");
517 });
518
519 /*$(".fixbutton-bg").on "click", ->
520 return false
521 */
522 $(".fixbutton-bg").on("mousedown", function() {});
523 $(".fixbutton-bg").on("mouseup", function() {});
524 }
525
526 return Fixbutton;
527

Callers

nothing calls this directly

Calls 2

$Function · 0.70
stopMethod · 0.45

Tested by

no test coverage detected