{:uriI"file://app/assets/javascripts/admin/codemirror/addon/display/fullscreen.js?type=application/javascript&pipeline=self&id=6b489168f7b52d65413d32a4b889e96891c27c030b7f070449d8fb45a32dcd71:ET:load_pathI"app/assets/javascripts;T: filenameI"Happ/assets/javascripts/admin/codemirror/addon/display/fullscreen.js;T: nameI".admin/codemirror/addon/display/fullscreen;T:logical_pathI"6admin/codemirror/addon/display/fullscreen.self.js;T:content_typeI"application/javascript;T: sourceI"// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineOption("fullScreen", false, function(cm, val, old) { if (old == CodeMirror.Init) old = false; if (!old == !val) return; if (val) setFullscreen(cm); else setNormal(cm); }); function setFullscreen(cm) { var wrap = cm.getWrapperElement(); cm.state.fullScreenRestore = {scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset, width: wrap.style.width, height: wrap.style.height}; wrap.style.width = ""; wrap.style.height = "auto"; wrap.className += " CodeMirror-fullscreen"; document.documentElement.style.overflow = "hidden"; cm.refresh(); } function setNormal(cm) { var wrap = cm.getWrapperElement(); wrap.className = wrap.className.replace(/\s*CodeMirror-fullscreen\b/, ""); document.documentElement.style.overflow = ""; var info = cm.state.fullScreenRestore; wrap.style.width = info.width; wrap.style.height = info.height; window.scrollTo(info.scrollLeft, info.scrollTop); cm.refresh(); } }); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"Vfile-digest://app/assets/javascripts/admin/codemirror/addon/display/fullscreen.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%ELѽ ̟9mr(OF: lengthi:dependencies_digest"%:& G/һ D+?{_EK,MƘ<%:idI"E6b489168f7b52d65413d32a4b889e96891c27c030b7f070449d8fb45a32dcd71;F: mtimel+?[