Initial commit
2
src/assets/_root/browserconfig.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig><msapplication><tile><square70x70logo src="/images/favicons/ms-icon-70x70.png"/><square150x150logo src="/images/favicons/ms-icon-150x150.png"/><square310x310logo src="/images/favicons/ms-icon-310x310.png"/><TileColor>#0d1852</TileColor></tile></msapplication></browserconfig>
|
BIN
src/assets/_root/chim/chim-exe.zip
Normal file
348
src/assets/_root/chim/js-dos-api.js
Normal file
@@ -0,0 +1,348 @@
|
||||
/*!
|
||||
* jQLite JavaScript Library v1.1.1 (http://code.google.com/p/jqlite/)
|
||||
* Copyright (c) 2010 Brett Fattori (bfattori@gmail.com)
|
||||
* Licensed under the MIT license
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* Many thanks to the jQuery team's efforts. Some code is
|
||||
* Copyright (c) 2010, John Resig. See
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* @author Brett Fattori (bfattori@gmail.com)
|
||||
* @author $Author: bfattori $
|
||||
* @version $Revision: 145 $
|
||||
*
|
||||
* Created: 03/29/2010
|
||||
* Modified: $Date: 2010-06-21 11:08:14 -0400 (Mon, 21 Jun 2010) $
|
||||
*/
|
||||
(function(){function B(){return+new Date}var D=function(a,b){if(a===""&&b)return b;var d=a.split(" "),c=d.shift(),e;if(c.charAt(0)=="#"){var g=i.getElementById(c.substring(1));e=g?[g]:[]}else{e=c.charAt(0)!=="."?c.split(".")[0]:"*";var h=c.split("."),j=null;if(e.indexOf("[")!=-1){j=e;e=e.substr(0,e.indexOf("["))}g=function(o){var n=arguments.callee,k;if(!(k=!n.needClass)){k=n.classes;if(o.className.length==0)k=false;else{for(var r=o.className.split(" "),l=k.length,p=0;p<k.length;p++)f.inArray(k[p],
|
||||
r)!=-1&&l--;k=l==0}}if(k=k){if(!(k=!n.needAttribute)){n=n.attributes;k=true;for(r=0;r<n.length;r++){l=n[r].split("=");p=l[0].indexOf("!")!=-1||l[0].indexOf("*")!=-1?l[0].charAt(l[0].length-1)+"=":"=";if(p!="=")l[0]=l[0].substring(0,l[0].length-1);switch(p){case "=":k&=o.getAttribute(l[0])===l[1];break;case "!=":k&=o.getAttribute(l[0])!==l[1];break;case "*=":k&=o.getAttribute(l[0]).indexOf(l[1])!=-1;break;default:k=false}}k=k}k=k}if(k)return o};for(var u=[],s=0;s<b.length;s++)for(var C=b[s].getElementsByTagName(e),
|
||||
v=0;v<C.length;v++)u.push(C[v]);h&&h.shift();e=[];g.classes=h;if(j!=null){var w=j.indexOf("[");s=j.lastIndexOf("]");w=j.substring(w+1,s).split("][")}g.attributes=j!=null?w:null;g.needClass=c.indexOf(".")!=-1&&h.length>0;g.needAttribute=j!=null;for(c=0;c<u.length;c++)g(u[c])&&e.push(u[c])}return D(d.join(" "),e)},Q=function(a,b){b=b||i;if(a.nodeType&&a.nodeType===E){a=i.body;if(a===null)return[i]}if(a.nodeType&&a.nodeType===m)return[a];if(a.jquery&&typeof a.jquery==="string")return a.toArray();if(b)b=
|
||||
F(b);if(f.isArray(a))return a;else if(typeof a==="string"){for(var d=[],c=0;c<b.length;c++){var e=[b[c]];if(!f.forceSimpleSelectorEngine&&e[0].querySelectorAll){e=e[0].querySelectorAll(a);for(var g=0;g<e.length;g++)d.push(e.item(g))}else d=d.concat(D(a,e))}return d}else return null},G=false;setTimeout(function(){var a=i.body;if(a){var b=i.createElement("script"),d="i"+(new Date).getTime();b.type="text/javascript";try{b.appendChild(i.createTextNode("window."+d+"=1;"))}catch(c){}a.insertBefore(b,a.firstChild);
|
||||
var e=true;if(window[d])delete window[d];else e=false;a.removeChild(b);G=e}else setTimeout(arguments.callee,33)},33);var H=function(a){var b=i.createElement("div");b.innerHTML=a;return{scripts:b.getElementsByTagName("script"),data:a}},I=function(a){a=a.replace(/-/g," ");a=a;var b=true;b=b||false;a=!a?"":a.toString().replace(/^\s*|\s*$/g,"");var d="";if(a.length<=0)a="";else{var c=false;d+=b?a.charAt(0):a.charAt(0).toUpperCase();for(b=1;b<a.length;b++){d+=c?a.charAt(b).toUpperCase():a.charAt(b).toLowerCase();
|
||||
var e=a.charCodeAt(b);c=e==32||e==45||e==46;if(e==99||e==67)if(a.charCodeAt(b-1)==77||a.charCodeAt(b-1)==109)c=true}a=d}return a.replace(/ /g,"")},J={click:"MouseEvents",dblclick:"MouseEvents",mousedown:"MouseEvents",mouseup:"MouseEvents",mouseover:"MouseEvents",mousemove:"MouseEvents",mouseout:"MouseEvents",contextmenu:"MouseEvents",keypress:"KeyEvents",keydown:"KeyEvents",keyup:"KeyEvents",load:"HTMLEvents",unload:"HTMLEvents",abort:"HTMLEvents",error:"HTMLEvents",resize:"HTMLEvents",scroll:"HTMLEvents",
|
||||
select:"HTMLEvents",change:"HTMLEvents",submit:"HTMLEvents",reset:"HTMLEvents",focus:"HTMLEvents",blur:"HTMLEvents",touchstart:"MouseEvents",touchend:"MouseEvents",touchmove:"MouseEvents"},K=function(a,b,d){if(f.isFunction(d)){if(typeof b==="string")b=b.toLowerCase();var c=J[b];if(b.indexOf("on")==0)b=b.substring(2);if(c){c=function(e){var g=arguments.callee,h=e.data||[];h.unshift(e);g=g.fn.apply(a,h);if(typeof g!="undefined"&&g===false){if(e.preventDefault&&e.stopPropagation){e.preventDefault();
|
||||
e.stopPropagation()}else{e.returnValue=false;e.cancelBubble=true}return false}return true};c.fn=d;a.addEventListener?a.addEventListener(b,c,false):a.attachEvent("on"+b,c)}else{if(!a._handlers)a._handlers={};c=a._handlers[b]||[];c.push(d);a._handlers[b]=c}}},f=function(a,b){return(new x).init(a,b)},i=window.document,y=Object.prototype.hasOwnProperty,z=Object.prototype.toString,L=Array.prototype.push,R=Array.prototype.slice,m=1,E=9,A=[],M=false,N=false,q;f.forceSimpleSelectorEngine=false;f.each=function(a,
|
||||
b){var d,c=0,e=a.length;if(e===undefined||f.isFunction(a))for(d in a){if(b.call(a[d],d,a[d])===false)break}else for(d=a[0];c<e&&b.call(d,c,d)!==false;d=a[++c]);return a};f.noop=function(){};f.isFunction=function(a){return z.call(a)==="[object Function]"};f.isArray=function(a){return z.call(a)==="[object Array]"};f.isPlainObject=function(a){if(!a||z.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!y.call(a,"constructor")&&!y.call(a.constructor.prototype,"isPrototypeOf"))return false;
|
||||
var b;for(b in a);return b===undefined||y.call(a,b)};f.merge=function(a,b){var d=a.length,c=0;if(typeof b.length==="number")for(var e=b.length;c<e;c++)a[d++]=b[c];else for(;b[c]!==undefined;)a[d++]=b[c++];a.length=d;return a};f.param=function(a){var b="";a&&f.each(a,function(d,c){b+=(b.length!=0?"&":"")+c+"="+encodeURIComponent(d)});return b};f.evalScripts=function(a){for(var b=i.getElementsByTagName("head")[0]||i.documentElement,d=0;d<a.length;d++){var c=i.createElement("script");c.type="text/javascript";
|
||||
if(G)c.appendChild(i.createTextNode(a[d].text));else c.text=a[d].text;b.insertBefore(c,b.firstChild);b.removeChild(c)}};f.ready=function(){for(M=true;A.length>0;)A.shift()()};var t="jQuery"+B(),S=0,O={};f.noData={embed:true,object:true,applet:true};f.cache={};f.data=function(a,b,d){if(!(a.nodeName&&jQuery.noData[a.nodeName.toLowerCase()])){a=a==window?O:a;var c=a[t];c||(c=a[t]=++S);if(b&&!jQuery.cache[c])jQuery.cache[c]={};if(d!==undefined)jQuery.cache[c][b]=d;return b?jQuery.cache[c][b]:c}};f.removeData=
|
||||
function(a,b){a=a==window?O:a;var d=a[t];if(b){if(jQuery.cache[d]){delete jQuery.cache[d][b];b="";for(b in jQuery.cache[d])break;b||jQuery.removeData(a)}}else{try{delete a[t]}catch(c){a.removeAttribute&&a.removeAttribute(t)}delete jQuery.cache[d]}};f.ajax={status:-1,statusText:"",responseText:null,responseXML:null,send:function(a,b,d){if(f.isFunction(b)){d=b;b={}}if(a){var c=true,e=null,g=null;if(typeof b.async!=="undefined"){c=b.async;delete b.async}if(typeof b.username!=="undefined"){e=b.username;
|
||||
delete b.username}if(typeof b.password!=="undefined"){g=b.password;delete b.password}b=f.param(b);if(b.length!=0)a+=(a.indexOf("?")==-1?"?":"&")+b;b=new XMLHttpRequest;b.open("GET",a,c,e,g);b.send();if(c){a=function(h){var j=arguments.callee;h.status==200?f.ajax.complete(h,j.cb):f.ajax.error(h,j.cb)};a.cb=d;d=function(){var h=arguments.callee;h.req.readyState!=4?setTimeout(h,250):h.xcb(h.req)};d.req=b;d.xcb=a;setTimeout(d,250)}}},complete:function(a,b){f.ajax.status=a.status;f.ajax.responseText=a.responseText;
|
||||
f.ajax.responseXML=a.responseXML;f.isFunction(b)&&b(a.responseText,a.status)},error:function(a,b){f.ajax.status=a.status;f.ajax.statusText=a.statusText;f.isFunction(b)&&b(a.status,a.statusText)}};f.makeArray=function(a,b){var d=b||[];if(a!=null)a.length==null||typeof a==="string"||jQuery.isFunction(a)||typeof a!=="function"&&a.setInterval?L.call(d,a):f.merge(d,a);return d};f.inArray=function(a,b){for(var d=0;d<b.length;d++)if(b[d]===a)return d;return-1};f.trim=function(a){return a!=null?a.toString().replace(/^\s*|\s*$/g,
|
||||
""):""};var x=function(){};x.prototype={selector:"",context:null,length:0,jquery:"jqlite-1.1.1",init:function(a,b){if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1}else if(typeof a==="function")this.ready(a);else{var d=[];if(a.jquery&&typeof a.jquery==="string")d=a.toArray();else if(f.isArray(a))d=a;else if(typeof a==="string"&&f.trim(a).indexOf("<")==0&&f.trim(a).indexOf(">")!=-1){d=f.trim(a).toLowerCase();d=d.indexOf("<option")==0?"SELECT":d.indexOf("<li")==0?"UL":d.indexOf("<tr")==
|
||||
0?"TBODY":d.indexOf("<td")==0?"TR":"DIV";d=i.createElement(d);d.innerHTML=a;d=[d.removeChild(d.firstChild)]}else{if(a.indexOf(",")!=-1){d=a.split(",");for(var c=0;c<d.length;c++)d[c]=f.trim(d[c])}else d=[a];c=[];for(var e=0;e<d.length;e++)c=c.concat(Q(d[e],b));d=c}L.apply(this,d)}return this},each:function(a){return f.each(this,a)},size:function(){return this.length},toArray:function(){return R.call(this,0)},ready:function(a){if(M)a();else{A.push(a);return this}},data:function(a,b){if(typeof a===
|
||||
"undefined"&&this.length)return jQuery.data(this[0]);else if(typeof a==="object")return this.each(function(){jQuery.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===undefined){if(data===undefined&&this.length)data=jQuery.data(this[0],a);return data===undefined&&d[1]?this.data(d[0]):data}else return this.each(function(){jQuery.data(this,a,b)})},removeData:function(a){return this.each(function(){jQuery.removeData(this,a)})},addClass:function(a){return this.each(function(){if(this.className.length!=
|
||||
0){var b=this.className.split(" ");if(f.inArray(a,b)==-1){b.push(a);this.className=b.join(" ")}}else this.className=a})},removeClass:function(a){return this.each(function(){if(this.className.length!=0){var b=this.className.split(" "),d=f.inArray(a,b);if(d!=-1){b.splice(d,1);this.className=b.join(" ")}}})},hasClass:function(a){if(this[0].className.length==0)return false;return f.inArray(a,this[0].className.split(" "))!=-1},isElementName:function(a){return this[0].nodeName.toLowerCase()===a.toLowerCase()},
|
||||
toggleClass:function(a){return this.each(function(){if(this.className.length==0)this.className=a;else{var b=this.className.split(" "),d=f.inArray(a,b);d!=-1?b.splice(d,1):b.push(a);this.className=b.join(" ")}})},hide:function(a){return this.each(function(){if(this.style&&this.style.display!=null)if(this.style.display.toString()!="none"){this._oldDisplay=this.style.display.toString()||(this.nodeName!="span"?"block":"inline");this.style.display="none"}f.isFunction(a)&&a(this)})},show:function(a){return this.each(function(){this.style.display=
|
||||
(this._oldDisplay&&this._oldDisplay!=""?this._oldDisplay:null)||(this.nodeName!="span"?"block":"inline");f.isFunction(a)&&a(this)})},css:function(a,b){if(typeof a==="string"&&b==null)return this[0].style[I(a)];else{a=typeof a==="string"?P(a,b):a;return this.each(function(){var d=this;typeof d.style!="undefined"&&f.each(a,function(c,e){e=typeof e==="number"?e+"px":e;var g=I(c);d.style[g]||(g=c);d.style[g]=e})})}},load:function(a,b,d){if(f.isFunction(b)){d=b;b={}}return this.each(function(){var c=function(e,
|
||||
g){var h=arguments.callee;if(e){var j=H(e);h.elem.innerHTML=j.data;f.evalScripts(j.scripts)}f.isFunction(h.cback)&&h.cback(e,g)};c.cback=d;c.elem=this;f.ajax.send(a,b,c)})},html:function(a){return a?this.each(function(){var b=H(a);this.innerHTML=b.data;f.evalScripts(b.scripts)}):this[0].innerHTML},attr:function(a,b){return typeof a==="string"&&b==null?this[0]?this[0].getAttribute(a):"":this.each(function(){a=typeof a==="string"?P(a,b):a;for(var d in a)this.setAttribute(d,a[d])})},eq:function(a){var b=
|
||||
this.toArray();this.context=this[0]=a<0?b[b.length+a]:b[a];this.length=1;return this},first:function(){this.context=this[0]=this.toArray()[0];this.length=1;return this},last:function(){var a=this.toArray();this.context=this[0]=a[a.length-1];this.length=1;return this},index:function(a){var b=-1;if(this.length!=0){var d=this[0];if(a){var c=f(a)[0];this.each(function(g){if(this===c){b=g;return false}})}else{a=this.parent()[0].firstChild;for(var e=[];a!=null;){a.nodeType===m&&e.push(a);a=a.nextSibling}f.each(a,
|
||||
function(g){if(this===d){b=g;return false}})}}return b},next:function(a){var b=[];if(a){var d=f(a);this.each(function(){for(var c=this.nextSibling;c!=null&&c.nodeType!==m;)c=c.nextSibling;if(c!=null){var e=false;d.each(function(){if(this==c){e=true;return false}});e&&b.push(c)}})}else this.each(function(){for(var c=this.nextSibling;c!=null&&c.nodeType!==m;)c=c.nextSibling;c!=null&&b.push(c)});return f(b)},prev:function(a){var b=[];if(a){var d=f(a);this.each(function(){for(var c=this.previousSibling;c!=
|
||||
null&&c.nodeType!==m;)c=c.previousSibling;if(c!=null){var e=false;d.each(function(){if(this==c){e=true;return false}});e&&b.push(c)}})}else this.each(function(){for(var c=this.previousSibling;c!=null&&c.nodeType!==m;)c=c.previousSibling;c!=null&&b.push(c)});return f(b)},parent:function(a){var b=[];if(a){var d=f(a);this.each(function(){var c=this.parentNode,e=false;d.each(function(){if(this==c){e=true;return false}});e&&b.push(c)})}else this.each(function(){b.push(this.parentNode)});return f(b)},parents:function(a){var b=
|
||||
[];if(a){var d=f(a);this.each(function(){for(var c=this;c!=i.body;){d.each(function(){this==c&&b.push(c)});c=c.parentNode}})}else this.each(function(){for(var c=this;c!=i.body;){c=c.parentNode;b.push(c)}});return f(b)},children:function(a){var b=[];if(a){var d=f(a);this.each(function(){for(var c=this.firstChild;c!=null;){c.nodeType==m&&d.each(function(){this===c&&b.push(c)});c=c.nextSibling}})}else this.each(function(){for(var c=this.firstChild;c!=null;){c.nodeType==m&&b.push(c);c=c.nextSibling}});
|
||||
return f(b)},append:function(a){a=F(a);return this.each(function(){for(var b=0;b<a.length;b++)this.appendChild(a[b])})},remove:function(a){return this.each(function(){a?$(a,this).remove():this.parentNode.removeChild(this)})},empty:function(){return this.each(function(){this.innerHTML=""})},val:function(a){if(a==null){var b=null;if(this&&this.length!=0&&typeof this[0].value!="undefined")b=this[0].value;return b}else return this.each(function(){if(typeof this.value!="undefined")this.value=a})},bind:function(a,
|
||||
b){return this.each(function(){K(this,a,b)})},trigger:function(a,b){return this.each(function(){var d;var c;c=a;if(typeof c==="string")c=c.toLowerCase();var e=null,g=J[c]||"Event";if(i.createEvent){e=i.createEvent(g);e._eventClass=g;c&&e.initEvent(c,true,true)}if(i.createEventObject){e=i.createEventObject();if(c){e.type=c;e._eventClass=g}}c=e;if(c._eventClass!=="Event"){c.data=b;d=this.dispatchEvent(c)}else if(e=(this._handlers||{})[a])for(g=0;g<e.length;g++){var h=f.isArray(b)?b:[];h.unshift(c);
|
||||
h=e[g].apply(this,h);if(!(typeof h=="undefined"?true:h))break}return d})},submit:function(a){return this.each(function(){if(f.isFunction(a))K(this,"onsubmit",a);else this.submit&&this.submit()})}};if(i.addEventListener)q=function(){i.removeEventListener("DOMContentLoaded",q,false);f.ready()};else if(i.attachEvent)q=function(){if(i.readyState==="complete"){i.detachEvent("onreadystatechange",q);f.ready()}};if(!N){N=true;if(i.readyState==="complete")return f.ready();if(i.addEventListener){i.addEventListener("DOMContentLoaded",
|
||||
q,false);window.addEventListener("load",f.ready,false)}else if(i.attachEvent){i.attachEvent("onreadystatechange",q);window.attachEvent("onload",f.ready)}}var P=function(a,b){var d={};d[a]=b;return d},F=function(a){if(a.nodeType&&(a.nodeType===m||a.nodeType===E))a=[a];else if(typeof a==="string")a=f(a).toArray();else if(a.jquery&&typeof a.jquery==="string")a=a.toArray();return a};if(typeof window.jQuery=="undefined"){window.jQuery=f;window.jQuery.fn=x.prototype;window.$=window.jQuery;window.now=B}jQuery.extend=
|
||||
jQuery.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,c=false,e,g,h,j;if(typeof a==="boolean"){c=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!jQuery.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(g in e){h=a[g];j=e[g];if(a!==j)if(c&&j&&(jQuery.isPlainObject(j)||jQuery.isArray(j))){h=h&&(jQuery.isPlainObject(h)||jQuery.isArray(h))?h:jQuery.isArray(j)?[]:{};a[g]=jQuery.extend(c,h,j)}else if(j!==undefined)a[g]=j}return a};jQuery.each("click,dblclick,mouseover,mouseout,mousedown,mouseup,keydown,keypress,keyup,focus,blur,change,select,error,load,unload,scroll,resize,touchstart,touchend,touchmove".split(","),
|
||||
function(a,b){jQuery.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)}})})();
|
||||
(function() {
|
||||
this.Dosbox = (function() {
|
||||
function Dosbox(options) {
|
||||
this.onload = options.onload;
|
||||
this.onrun = options.onrun;
|
||||
this.ui = new Dosbox.UI(options);
|
||||
this.module = new Dosbox.Module({
|
||||
canvas: this.ui.canvas
|
||||
});
|
||||
this.ui.onStart((function(_this) {
|
||||
return function() {
|
||||
_this.ui.showLoader();
|
||||
return _this.downloadScript();
|
||||
};
|
||||
})(this));
|
||||
}
|
||||
|
||||
Dosbox.prototype.run = function(archiveUrl, executable) {
|
||||
return new Dosbox.Mount(this.module, archiveUrl, {
|
||||
success: (function(_this) {
|
||||
return function() {
|
||||
var func, hide;
|
||||
_this.ui.updateMessage("Launching " + executable);
|
||||
hide = function() {
|
||||
return _this.ui.hideLoader();
|
||||
};
|
||||
func = function() {
|
||||
return _this._dosbox_main(_this, executable);
|
||||
};
|
||||
setTimeout(func, 1000);
|
||||
return setTimeout(hide, 3000);
|
||||
};
|
||||
})(this),
|
||||
progress: (function(_this) {
|
||||
return function(total, current) {
|
||||
return _this.ui.updateMessage("Mount " + executable + " (" + (current * 100 / total | 0) + "%)");
|
||||
};
|
||||
})(this)
|
||||
});
|
||||
};
|
||||
|
||||
Dosbox.prototype.requestFullScreen = function() {
|
||||
if (this.module.requestFullScreen) {
|
||||
return this.module.requestFullScreen(true, false);
|
||||
}
|
||||
};
|
||||
|
||||
Dosbox.prototype.downloadScript = function() {
|
||||
this.module.setStatus('Downloading js-dos');
|
||||
this.ui.updateMessage('Downloading js-dos');
|
||||
return new Dosbox.Xhr('https://js-dos.com/cdn/js-dos-v3.js', {
|
||||
success: (function(_this) {
|
||||
return function(script) {
|
||||
var func;
|
||||
_this.ui.updateMessage('Initializing dosbox');
|
||||
func = function() {
|
||||
return _this._jsdos_init(_this.module, script, _this.onload);
|
||||
};
|
||||
return setTimeout(func, 1000);
|
||||
};
|
||||
})(this),
|
||||
progress: (function(_this) {
|
||||
return function(total, current) {
|
||||
return _this.ui.updateMessage("Downloading js-dos (" + (current * 100 / total | 0) + "%)");
|
||||
};
|
||||
})(this)
|
||||
});
|
||||
};
|
||||
|
||||
Dosbox.prototype._jsdos_init = function(module, script, onload) {
|
||||
var Module;
|
||||
Module = module;
|
||||
eval(script);
|
||||
if (onload) {
|
||||
return onload(this);
|
||||
}
|
||||
};
|
||||
|
||||
Dosbox.prototype._dosbox_main = function(dosbox, executable) {
|
||||
var exception, func;
|
||||
try {
|
||||
if (dosbox.onrun) {
|
||||
func = function() {
|
||||
return dosbox.onrun(dosbox, executable);
|
||||
};
|
||||
setTimeout(func, 1000);
|
||||
}
|
||||
return dosbox.module.ccall('dosbox_main', 'int', ['string'], [executable]);
|
||||
} catch (error) {
|
||||
exception = error;
|
||||
if (exception === 'SimulateInfiniteLoop') {
|
||||
|
||||
} else {
|
||||
return typeof console !== "undefined" && console !== null ? typeof console.error === "function" ? console.error(exception) : void 0 : void 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return Dosbox;
|
||||
|
||||
})();
|
||||
|
||||
}).call(this);
|
||||
|
||||
(function() {
|
||||
Dosbox.Module = (function() {
|
||||
function Module(options) {
|
||||
this.elCanvas = options.canvas;
|
||||
this.canvas = this.elCanvas[0];
|
||||
}
|
||||
|
||||
Module.prototype.preRun = [];
|
||||
|
||||
Module.prototype.postRun = [];
|
||||
|
||||
Module.prototype.totalDependencies = 0;
|
||||
|
||||
Module.prototype.print = function(text) {
|
||||
text = Array.prototype.slice.call(arguments).join(' ');
|
||||
return typeof console !== "undefined" && console !== null ? typeof console.log === "function" ? console.log(text) : void 0 : void 0;
|
||||
};
|
||||
|
||||
Module.prototype.printErr = function(text) {
|
||||
text = Array.prototype.slice.call(arguments).join(' ');
|
||||
return typeof console !== "undefined" && console !== null ? typeof console.error === "function" ? console.error(text) : void 0 : void 0;
|
||||
};
|
||||
|
||||
Module.prototype.setStatus = function(text) {
|
||||
return typeof console !== "undefined" && console !== null ? typeof console.log === "function" ? console.log(text) : void 0 : void 0;
|
||||
};
|
||||
|
||||
Module.prototype.monitorRunDependencies = function(left) {
|
||||
var status;
|
||||
this.totalDependencies = Math.max(this.totalDependencies, left);
|
||||
status = left ? "Preparing... (" + (this.totalDependencies - left) + "/" + this.totalDependencies + ")" : 'All downloads complete.';
|
||||
return this.setStatus(status);
|
||||
};
|
||||
|
||||
return Module;
|
||||
|
||||
})();
|
||||
|
||||
}).call(this);
|
||||
|
||||
(function() {
|
||||
Dosbox.Mount = (function() {
|
||||
function Mount(module, url, options) {
|
||||
this.module = module;
|
||||
new Dosbox.Xhr(url, {
|
||||
success: (function(_this) {
|
||||
return function(data) {
|
||||
var bytes;
|
||||
bytes = _this._toArray(data);
|
||||
if (_this._mountZip(bytes)) {
|
||||
return options.success();
|
||||
} else {
|
||||
return typeof console !== "undefined" && console !== null ? typeof console.error === "function" ? console.error('Unable to mount', url) : void 0 : void 0;
|
||||
}
|
||||
};
|
||||
})(this),
|
||||
progress: options.progress
|
||||
});
|
||||
}
|
||||
|
||||
Mount.prototype._mountZip = function(bytes) {
|
||||
var buffer, extracted;
|
||||
buffer = this.module._malloc(bytes.length);
|
||||
this.module.HEAPU8.set(bytes, buffer);
|
||||
extracted = this.module.ccall('extract_zip', 'int', ['number', 'number'], [buffer, bytes.length]);
|
||||
this.module._free(buffer);
|
||||
return extracted === 0;
|
||||
};
|
||||
|
||||
Mount.prototype._toArray = function(data) {
|
||||
var arr, i, len;
|
||||
if (typeof data === 'string') {
|
||||
arr = new Array(data.length);
|
||||
i = 0;
|
||||
len = data.length;
|
||||
while (i < len) {
|
||||
arr[i] = data.charCodeAt(i);
|
||||
++i;
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
return data;
|
||||
};
|
||||
|
||||
return Mount;
|
||||
|
||||
})();
|
||||
|
||||
}).call(this);
|
||||
|
||||
(function() {
|
||||
Dosbox.UI = (function() {
|
||||
function UI(options) {
|
||||
this.appendCss();
|
||||
this.div = $('#' + (options.id || 'dosbox'));
|
||||
this.wrapper = $('<div class="dosbox-container">');
|
||||
this.canvas = $('<canvas class="dosbox-canvas" oncontextmenu="event.preventDefault()">');
|
||||
this.overlay = $('<div class="dosbox-overlay">');
|
||||
this.loaderMessage = $('<div class="dosbox-loader-message">');
|
||||
this.loader = $('<div class="dosbox-loader">').append($('<div class="st-loader">').append($('<span class="equal">'))).append(this.loaderMessage);
|
||||
this.start = $('<div class="dosbox-start">Click to start');
|
||||
this.div.append(this.wrapper);
|
||||
this.wrapper.append(this.canvas);
|
||||
this.wrapper.append(this.loader);
|
||||
this.wrapper.append(this.overlay);
|
||||
this.overlay.append($('<div class="dosbox-powered">Powered by ').append($('<a href="http://js-dos.com">js-dos.com')));
|
||||
this.overlay.append(this.start);
|
||||
}
|
||||
|
||||
UI.prototype.onStart = function(fun) {
|
||||
return this.start.click((function(_this) {
|
||||
return function() {
|
||||
fun();
|
||||
return _this.overlay.hide();
|
||||
};
|
||||
})(this));
|
||||
};
|
||||
|
||||
UI.prototype.appendCss = function() {
|
||||
var head, style;
|
||||
head = document.head || document.getElementsByTagName('head')[0];
|
||||
style = document.createElement('style');
|
||||
style.type = 'text/css';
|
||||
if (style.styleSheet) {
|
||||
style.styleSheet.cssText = this.css;
|
||||
} else {
|
||||
style.appendChild(document.createTextNode(this.css));
|
||||
}
|
||||
return head.appendChild(style);
|
||||
};
|
||||
|
||||
UI.prototype.showLoader = function() {
|
||||
this.loader.show();
|
||||
return this.loaderMessage.html('');
|
||||
};
|
||||
|
||||
UI.prototype.updateMessage = function(message) {
|
||||
return this.loaderMessage.html(message);
|
||||
};
|
||||
|
||||
UI.prototype.hideLoader = function() {
|
||||
return this.loader.hide();
|
||||
};
|
||||
|
||||
UI.prototype.css = '.dosbox-container { position: relative; min-width: 320px; min-height: 200px; } .dosbox-canvas { } .dosbox-overlay, .dosbox-loader { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background-color: #333; } .dosbox-start { text-align: center; position: absolute; left: 0; right: 0; bottom: 50%; color: #f80; font-size: 1.5em; text-decoration: underline; cursor: pointer; } .dosbox-overlay a { color: #f80; } .dosbox-loader { display: none; } .dosbox-powered { position: absolute; right: 1em; bottom: 1em; font-size: 0.8em; color: #9C9C9C; } .dosbox-loader-message { text-align: center; position: absolute; left: 0; right: 0; bottom: 50%; margin: 0 0 -3em 0; box-sizing: border-box; color: #f80; font-size: 1.5em; } @-moz-keyframes loading { 0% { left: 0; } 50% { left: 8.33333em; } 100% { left: 0; } } @-webkit-keyframes loading { 0% { left: 0; } 50% { left: 8.33333em; } 100% { left: 0; } } @keyframes loading { 0% { left: 0; } 50% { left: 8.33333em; } 100% { left: 0; } } .st-loader { width: 10em; height: 2.5em; position: absolute; top: 50%; left: 50%; margin: -1.25em 0 0 -5em; box-sizing: border-box; } .st-loader:before, .st-loader:after { content: ""; display: block; position: absolute; top: 0; bottom: 0; width: 1.25em; box-sizing: border-box; border: 0.25em solid #f80; } .st-loader:before { left: -0.76923em; border-right: 0; } .st-loader:after { right: -0.76923em; border-left: 0; } .st-loader .equal { display: block; position: absolute; top: 50%; margin-top: -0.5em; left: 4.16667em; height: 1em; width: 1.66667em; border: 0.25em solid #f80; box-sizing: border-box; border-width: 0.25em 0; -moz-animation: loading 1.5s infinite ease-in-out; -webkit-animation: loading 1.5s infinite ease-in-out; animation: loading 1.5s infinite ease-in-out; }';
|
||||
|
||||
return UI;
|
||||
|
||||
})();
|
||||
|
||||
}).call(this);
|
||||
|
||||
(function() {
|
||||
Dosbox.Xhr = (function() {
|
||||
function Xhr(url, options) {
|
||||
var e;
|
||||
this.success = options.success;
|
||||
this.progress = options.progress;
|
||||
if (window.ActiveXObject) {
|
||||
try {
|
||||
this.xhr = new ActiveXObject('Microsoft.XMLHTTP');
|
||||
} catch (error) {
|
||||
e = error;
|
||||
this.xhr = null;
|
||||
}
|
||||
} else {
|
||||
this.xhr = new XMLHttpRequest();
|
||||
}
|
||||
this.xhr.open('GET', url, true);
|
||||
this.xhr.overrideMimeType('text/plain; charset=x-user-defined');
|
||||
this.xhr.addEventListener('progress', (function(_this) {
|
||||
return function(evt) {
|
||||
if (_this.progress) {
|
||||
return _this.progress(evt.total, evt.loaded);
|
||||
}
|
||||
};
|
||||
})(this));
|
||||
this.xhr.onreadystatechange = (function(_this) {
|
||||
return function() {
|
||||
return _this._onReadyStateChange();
|
||||
};
|
||||
})(this);
|
||||
this.xhr.send();
|
||||
}
|
||||
|
||||
Xhr.prototype._onReadyStateChange = function() {
|
||||
if (this.xhr.readyState === 4 && this.success) {
|
||||
return this.success(this.xhr.responseText);
|
||||
}
|
||||
};
|
||||
|
||||
return Xhr;
|
||||
|
||||
})();
|
||||
|
||||
}).call(this);
|
BIN
src/assets/_root/favicon.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/_root/favicon.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
41
src/assets/_root/manifest.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "Its Eric Woodward! (dotcom)",
|
||||
"icons": [
|
||||
{
|
||||
"src": "\/images\/favicons\/android-icon-36x36.png",
|
||||
"sizes": "36x36",
|
||||
"type": "image\/png",
|
||||
"density": "0.75"
|
||||
},
|
||||
{
|
||||
"src": "\/images\/favicons\/android-icon-48x48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image\/png",
|
||||
"density": "1.0"
|
||||
},
|
||||
{
|
||||
"src": "\/images\/favicons\/android-icon-72x72.png",
|
||||
"sizes": "72x72",
|
||||
"type": "image\/png",
|
||||
"density": "1.5"
|
||||
},
|
||||
{
|
||||
"src": "\/images\/favicons\/android-icon-96x96.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image\/png",
|
||||
"density": "2.0"
|
||||
},
|
||||
{
|
||||
"src": "\/images\/favicons\/android-icon-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image\/png",
|
||||
"density": "3.0"
|
||||
},
|
||||
{
|
||||
"src": "\/images\/favicons\/android-icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image\/png",
|
||||
"density": "4.0"
|
||||
}
|
||||
]
|
||||
}
|
BIN
src/assets/_root/root/favicon.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/_root/root/favicon.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/404/hole-bg-1100x1238-50.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
src/assets/images/404/hole-bg-1100x900-50.jpg
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
src/assets/images/404/hole-bg-1600x900-50.jpg
Normal file
After Width: | Height: | Size: 83 KiB |
BIN
src/assets/images/404/hole-bg.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
src/assets/images/favicons/android-icon-144x144.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/images/favicons/android-icon-192x192.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
src/assets/images/favicons/android-icon-36x36.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
src/assets/images/favicons/android-icon-48x48.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
src/assets/images/favicons/android-icon-72x72.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
src/assets/images/favicons/android-icon-96x96.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
src/assets/images/favicons/apple-icon-114x114.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/favicons/apple-icon-120x120.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/favicons/apple-icon-144x144.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/images/favicons/apple-icon-152x152.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
src/assets/images/favicons/apple-icon-180x180.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
src/assets/images/favicons/apple-icon-57x57.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
src/assets/images/favicons/apple-icon-60x60.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
src/assets/images/favicons/apple-icon-72x72.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
src/assets/images/favicons/apple-icon-76x76.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
BIN
src/assets/images/favicons/apple-icon-precomposed.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
src/assets/images/favicons/apple-icon.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
src/assets/images/favicons/favicon-32x32.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
src/assets/images/favicons/favicon-96x96.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
src/assets/images/favicons/favicon.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/favicons/favicon.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/favicons/ms-icon-144x144.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/images/favicons/ms-icon-150x150.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
src/assets/images/favicons/ms-icon-310x310.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
src/assets/images/favicons/ms-icon-70x70.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
src/assets/images/portal-header.jpg
Normal file
After Width: | Height: | Size: 759 KiB |
9
src/assets/scripts/1-docready.min.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT
|
||||
/*
|
||||
docready.js
|
||||
https://github.com/jfriend00/docReady
|
||||
The MIT License (MIT)
|
||||
Copyright (c) 2014 John Friend
|
||||
*/
|
||||
!(function(t,e){"use strict";function n(){if(!a){a=!0;for(var t=0;t<o.length;t+=1){o[t].fn.call(window,o[t].ctx)}o=[]}}function d(){"complete"===document.readyState&&n()}(t=t||"docReady"),(e=e||window);var o=[],a=!1,c=!1;e[t]=function(t,e){return a?void setTimeout(function(){t(e)},1):(o.push({fn:t,ctx:e}),void("complete"===document.readyState||(!document.attachEvent&&"interactive"===document.readyState)?setTimeout(n,1):c||(document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):(document.attachEvent("onreadystatechange",d),window.attachEvent("onload",n)),(c=!0))))}})("docReady",window);
|
||||
// @license-end
|
9
src/assets/scripts/2-es6-promise.auto.min.js
vendored
Normal file
9
src/assets/scripts/3-lazy-progressive-enhancement.min.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT
|
||||
/*
|
||||
lazy-progressive-enhancement.js v1.0.0
|
||||
https://github.com/tvler/lazy-progressive-enhancement
|
||||
The MIT License (MIT)
|
||||
Copyright (c) 2016 Tyler Deitz
|
||||
*/
|
||||
function loadMedia(t,e,n){"use strict";function r(t){if(t==null){t=document.querySelectorAll("noscript")}else if(t instanceof Element){t=[t]}else if(typeof t==="string"){t=document.querySelectorAll(t)}return t}function i(t,e){return window.setInterval(function(){var n=t.getBoundingClientRect(),r=150;if(n.bottom>= -r&&n.top-window.innerHeight<r&&n.right>= -r&&n.left-window.innerWidth<r){window.clearInterval(t.getAttribute("data-intervalid"));t.srcset=t.getAttribute("data-srcset");t.src=t.getAttribute("data-src");e&&e()}},100)}function a(t){var a,A,l="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";for(var d=0;d<(t=r(t)).length;d+=1){A=new DOMParser().parseFromString((a=t[d]).textContent,"text/html").body.firstElementChild;if(n){A.setAttribute("data-src",A.getAttribute("src"));A.setAttribute("data-srcset",A.getAttribute("srcset")||"");A.src=A.srcset=l;a.parentElement.replaceChild(A,a);A.setAttribute("data-intervalid",i(A,e&&e.bind(A)))}else{A.onload=e;a.parentElement.replaceChild(A,a)}}}var A=function(){a(t)};if(document.readyState!=="loading"){A()}else{document.addEventListener("DOMContentLoaded",A)}}
|
||||
// @license-end
|
9
src/assets/scripts/4-js.cookie.min.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT
|
||||
/*
|
||||
js-cookie v3.0.1
|
||||
https://github.com/js-cookie/js-cookie
|
||||
Copyright (c) 2018 Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors
|
||||
Released under the MIT license
|
||||
*/
|
||||
!(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?(module.exports=t()):"function"==typeof define&&define.amd?define(t):((e=e||self),(function(){var n=e.Cookies,o=(e.Cookies=t());o.noConflict=function(){return(e.Cookies=n),o}})())})(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t+=1){var n=arguments[t];for(var o in n){e[o]=n[o]}}return e}return(function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),(t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape));var c="";for(var u in i){i[u]&&((c+="; "+u),!0!==i[u]&&(c+="="+i[u].split(";")[0]))}return(document.cookie=t+"="+n.write(r,t)+c)}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r+=1){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(((o[u]=n.read(c,u)),e===u)){break}}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})})({read:function(e){return('"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent))},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});
|
||||
// @license-end
|
10
src/assets/scripts/5-fontfaceobserver.min.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// @license magnet:?xt=urn:btih:c80d50af7d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt BSD-3-Clause
|
||||
/*
|
||||
Font Face Observer v2.3.0
|
||||
https://github.com/bramstein/fontfaceobserver
|
||||
The BSD 3-Clause License
|
||||
Copyright Bram Stein. All rights reserved.
|
||||
*/
|
||||
(function(){"use strict";var f,g=[];function l(a){g.push(a);1==g.length&&f()}function m(){for(;g.length;){g[0](),g.shift()}}f=function(){setTimeout(m)};function n(a){this.a=p;this.b=void 0;this.f=[];var b=this;try{a(function(a){q(b,a)},function(a){r(b,a)})}catch(c){r(b,c)}}var p=2;function t(a){return new n(function(b,c){c(a)})}function u(a){return new n(function(b){b(a)})}function q(a,b){if(a.a==p){if(b==a){throw new TypeError()}var c=!1;try{var d=b&&b.then;if(null!=b&&"object"==typeof b&&"function"==typeof d){d.call(b,function(b){c||q(a,b);c=!0},function(b){c||r(a,b);c=!0});return}}catch(e){c||r(a,e);return}a.a=0;a.b=b;v(a)}}function r(a,b){if(a.a==p){if(b==a){throw new TypeError()}a.a=1;a.b=b;v(a)}}function v(a){l(function(){if(a.a!=p){for(;a.f.length;){var b=a.f.shift(),c=b[0],d=b[1],e=b[2],b=b[3];try{0==a.a?"function"==typeof c?e(c.call(void 0,a.b)):e(a.b):1==a.a&&("function"==typeof d?e(d.call(void 0,a.b)):b(a.b))}catch(h){b(h)}}}})}n.prototype.g=function(a){return this.c(void 0,a)};n.prototype.c=function(a,b){var c=this;return new n(function(d,e){c.f.push([a,b,d,e]);v(c)})};function w(a){return new n(function(b,c){function d(c){return function(d){h[c]=d;e+=1;e==a.length&&b(h)}}var e=0,h=[];0==a.length&&b(h);for(var k=0;k<a.length;k+=1){u(a[k]).c(d(k),c)}})}function x(a){return new n(function(b,c){for(var d=0;d<a.length;d+=1){u(a[d]).c(b,c)}})}window.Promise||((window.Promise=n),(window.Promise.resolve=u),(window.Promise.reject=t),(window.Promise.race=x),(window.Promise.all=w),(window.Promise.prototype.then=n.prototype.c),(window.Promise.prototype["catch"]=n.prototype.g))})();
|
||||
(function(){function p(a,c){document.addEventListener?a.addEventListener("scroll",c,!1):a.attachEvent("scroll",c)}function u(a){document.body?a():document.addEventListener?document.addEventListener("DOMContentLoaded",function b(){document.removeEventListener("DOMContentLoaded",b);a()}):document.attachEvent("onreadystatechange",function g(){if("interactive"==document.readyState||"complete"==document.readyState){document.detachEvent("onreadystatechange",g),a()}})}function w(a){this.g=document.createElement("div");this.g.setAttribute("aria-hidden","true");this.g.appendChild(document.createTextNode(a));this.h=document.createElement("span");this.i=document.createElement("span");this.m=document.createElement("span");this.j=document.createElement("span");this.l=-1;this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;";this.h.appendChild(this.m);this.i.appendChild(this.j);this.g.appendChild(this.h);this.g.appendChild(this.i)}function x(a,c){a.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+c+";"}function B(a){var c=a.g.offsetWidth,b=c+100;a.j.style.width=b+"px";a.i.scrollLeft=b;a.h.scrollLeft=a.h.scrollWidth+100;return a.l!==c?((a.l=c),!0):!1}function C(a,c){function b(){var e=g;B(e)&&null!==e.g.parentNode&&c(e.l)}var g=a;p(a.h,b);p(a.i,b);B(a)}function D(a,c,b){c=c||{};b=b||window;this.family=a;this.style=c.style||"normal";this.weight=c.weight||"normal";this.stretch=c.stretch||"normal";this.context=b}var E=null,F=null,G=null,H=null;function I(a){null===F&&(M(a)&&/Apple/.test(window.navigator.vendor)?((a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent)),(F=!!a&&603>parseInt(a[1],10))):(F=!1));return F}function M(a){null===H&&(H=!!a.document.fonts);return H}function N(a,c){var b=a.style,g=a.weight;if(null===G){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(q){}G=""!==e.style.font}return[b,g,G?a.stretch:"","100px",c].join(" ")}D.prototype.load=function(a,c){var b=this,g=a||"BESbswy",e=0,q=c||3e3,J=new Date().getTime();return new Promise(function(K,L){if(M(b.context)&&!I(b.context)){var O=new Promise(function(r,t){function h(){new Date().getTime()-J>=q?t(Error(""+q+"ms timeout exceeded")):b.context.document.fonts.load(N(b,'"'+b.family+'"'),g).then(function(n){1<=n.length?r():setTimeout(h,25)},t)}h()}),P=new Promise(function(r,t){e=setTimeout(function(){t(Error(""+q+"ms timeout exceeded"))},q)});Promise.race([P,O]).then(function(){clearTimeout(e);K(b)},L)}else{u(function(){function r(){var d;if((d=(-1!=k&&-1!=l)||(-1!=k&&-1!=m)||(-1!=l&&-1!=m))){(d=k!=l&&k!=m&&l!=m)||(null===E&&((d=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent)),(E=!!d&&(536>parseInt(d[1],10)||(536===parseInt(d[1],10)&&11>=parseInt(d[2],10))))),(d=E&&((k==y&&l==y&&m==y)||(k==z&&l==z&&m==z)||(k==A&&l==A&&m==A)))),(d=!d)}d&&(null!==f.parentNode&&f.parentNode.removeChild(f),clearTimeout(e),K(b))}function t(){if(new Date().getTime()-J>=q){null!==f.parentNode&&f.parentNode.removeChild(f),L(Error(""+q+"ms timeout exceeded"))}else{var d=b.context.document.hidden;if(!0===d||void 0===d){(k=h.g.offsetWidth),(l=n.g.offsetWidth),(m=v.g.offsetWidth),r()}e=setTimeout(t,50)}}var h=new w(g),n=new w(g),v=new w(g),k=-1,l=-1,m=-1,y=-1,z=-1,A=-1,f=document.createElement("div");f.dir="ltr";x(h,N(b,"sans-serif"));x(n,N(b,"serif"));x(v,N(b,"monospace"));f.appendChild(h.g);f.appendChild(n.g);f.appendChild(v.g);b.context.document.body.appendChild(f);y=h.g.offsetWidth;z=n.g.offsetWidth;A=v.g.offsetWidth;t();C(h,function(d){k=d;r()});x(h,N(b,'"'+b.family+'",sans-serif'));C(n,function(d){l=d;r()});x(n,N(b,'"'+b.family+'",serif'));C(v,function(d){m=d;r()});x(v,N(b,'"'+b.family+'",monospace'))})}})};"object"===typeof module?(module.exports=D):((window.FontFaceObserver=D),(window.FontFaceObserver.prototype.load=D.prototype.load))})();
|
||||
// @license-end
|
9
src/assets/scripts/6-classlist.min.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// @license magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt Unlicense
|
||||
/*
|
||||
classList.js v1.2.20171210
|
||||
https://github.com/eligrey/classList.js
|
||||
The Unlicense
|
||||
*/
|
||||
"document"in self&&(("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))||!(function(t){"use strict";if("Element"in t){var e="classList",n="prototype",i=t.Element[n],s=Object,r=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array[n].indexOf||function(t){for(var e=0,n=this.length;n>e;e+=1){if(e in this&&this[e]===t){return e}}return -1},c=function(t,e){(this.name=t),(this.code=DOMException[t]),(this.message=e)},a=function(t,e){if(""===e){throw new c("SYNTAX_ERR","The token must not be empty.")}if(/\s/.test(e)){throw new c("INVALID_CHARACTER_ERR","The token must not contain space characters.")}return o.call(t,e)},l=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,s=n.length;s>i;i+=1){this.push(n[i])}this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=(l[n]=[]),h=function(){return new l(this)};if(((c[n]=Error[n]),(u.item=function(t){return this[t]||null}),(u.contains=function(t){return~a(this,t+"")}),(u.add=function(){var t,e=arguments,n=0,i=e.length,s=!1;do{(t=e[n]+""),~a(this,t)||(this.push(t),(s=!0))}while(++n<i);s&&this._updateClassName()}),(u.remove=function(){var t,e,n=arguments,i=0,s=n.length,r=!1;do{for(t=n[i]+"",e=a(this,t);~e;){this.splice(e,1),(r=!0),(e=a(this,t))}}while(++i<s);r&&this._updateClassName()}),(u.toggle=function(t,e){var n=this.contains(t),i=n?e!==!0&&"remove":e!==!1&&"add";return i&&this[i](t),e===!0||e===!1?e:!n}),(u.replace=function(t,e){var n=a(t+"");~n&&(this.splice(n,1,e),this._updateClassName())}),(u.toString=function(){return this.join(" ")}),s.defineProperty)){var f={get:h,enumerable:!0,configurable:!0};try{s.defineProperty(i,e,f)}catch(p){(void 0!==p.number&&-2146823252!==p.number)||((f.enumerable=!1),s.defineProperty(i,e,f))}}else{s[n].__defineGetter__&&i.__defineGetter__(e,h)}}})(self),(function(){"use strict";var t=document.createElement("_");if((t.classList.add("c1","c2"),!t.classList.contains("c2"))){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,i=arguments.length;for(n=0;i>n;n+=1){(t=arguments[n]),e.call(this,t)};;};e("add"),e("remove")}if((t.classList.toggle("c3",!1),t.classList.contains("c3"))){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),i=n.indexOf(t+"");~i&&((n=n.slice(i)),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),(t=null)})());
|
||||
|
||||
// @license-end
|
10
src/assets/scripts/7-dayjs.min.js
vendored
Normal file
80
src/assets/scripts/scripts.js
Normal file
@@ -0,0 +1,80 @@
|
||||
// @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0-1.0
|
||||
/****************************************************************************
|
||||
* It's Eric Woodward's Site
|
||||
*
|
||||
* Copyright 2014-2022 Eric Woodward
|
||||
* Source released under CC0 Public Domain License v1.0
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
****************************************************************************/
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
// Checking if browser "cuts the mustard" - https://gomakethings.com/ditching-jquery/
|
||||
if (!(!!document.querySelector && !!window.addEventListener)) return;
|
||||
|
||||
if (window.dayjs) dayjs.extend(window.dayjs_plugin_relativeTime);
|
||||
|
||||
// Indicate JS is loaded
|
||||
document.documentElement.className =
|
||||
document.documentElement.className.replace("no-js", "js");
|
||||
|
||||
// Enable cached fonts ASAP
|
||||
if (window.Cookies && !!Cookies.get("fonts_loaded")) {
|
||||
document.documentElement.className += " js-hasFontsLoaded";
|
||||
}
|
||||
|
||||
docReady(function () {
|
||||
setTimeout(function () {
|
||||
if (!window.Cookies || !window.FontFaceObserver) return;
|
||||
|
||||
// Handle Fonts
|
||||
const font_ls = new FontFaceObserver("liberation_serif"),
|
||||
font_msc = new FontFaceObserver("marcellus_sc");
|
||||
Promise.all([font_ls.load(), font_msc.load()]).then(function () {
|
||||
if (
|
||||
document.documentElement.className.indexOf(
|
||||
"js-hasFontsLoaded"
|
||||
) == -1
|
||||
) {
|
||||
document.documentElement.className += " js-hasFontsLoaded";
|
||||
}
|
||||
Cookies.set("fonts_loaded", true);
|
||||
});
|
||||
|
||||
// Lazy-Load Media
|
||||
if (typeof loadMedia === "function") {
|
||||
loadMedia(".js-lazyLoader", null, true);
|
||||
}
|
||||
|
||||
// Add relative dates via dayjs
|
||||
if (window.dayjs) {
|
||||
const times = document.getElementsByTagName("time");
|
||||
|
||||
[].forEach.call(times, function (the_time) {
|
||||
let pub_time = the_time.getAttribute("datetime");
|
||||
if (the_time.className.indexOf("js-noRelativeTime") === -1)
|
||||
the_time.innerHTML +=
|
||||
' <span class="js-momentTime">(' +
|
||||
dayjs(pub_time).from(dayjs()) +
|
||||
")</span>";
|
||||
the_time.classList.add("isDone");
|
||||
});
|
||||
}
|
||||
|
||||
if (document.documentElement.className.indexOf("is404") > -1) {
|
||||
document.getElementById("searchQuery").value =
|
||||
window.location.pathname
|
||||
.replace(/\\.html?$/, "")
|
||||
.replace(/\//g, " ");
|
||||
}
|
||||
|
||||
document
|
||||
.getElementById("searchForm")
|
||||
.addEventListener("submit", function (e) {
|
||||
document.getElementById("searchQuery").value +=
|
||||
" site:" + window.location.hostname;
|
||||
});
|
||||
}, 1);
|
||||
});
|
||||
})();
|
||||
// @license-end
|
43
src/assets/styles/fonts.css
Normal file
@@ -0,0 +1,43 @@
|
||||
@font-face {
|
||||
font-family: 'exo_2';
|
||||
src: url('/files/fonts/Exo2-Regular-webfont.eot');
|
||||
src: url('/files/fonts/Exo2-Regular-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('/files/fonts/Exo2-Regular-webfont.woff') format('woff'),
|
||||
url('/files/fonts/Exo2-Regular-webfont.ttf') format('truetype'),
|
||||
url('/files/fonts/Exo2-Regular-webfont.svg#exo_2') format('svg');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'exo_2';
|
||||
src: url('/files/fonts/Exo2-Italic-webfont.eot');
|
||||
src: url('/files/fonts/Exo2-Italic-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('/files/fonts/Exo2-Italic-webfont.woff') format('woff'),
|
||||
url('/files/fonts/Exo2-Italic-webfont.ttf') format('truetype'),
|
||||
url('/files/fonts/Exo2-Italic-webfont.svg#exo_2') format('svg');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'exo_2';
|
||||
src: url('Exo2-Bold-webfont.eot');
|
||||
src: url('Exo2-Bold-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('Exo2-Bold-webfont.woff') format('woff'),
|
||||
url('Exo2-Bold-webfont.ttf') format('truetype'),
|
||||
url('Exo2-Bold-webfont.svg#exo_2') format('svg');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'exo_2';
|
||||
src: url('Exo2-BoldItalic-webfont.eot');
|
||||
src: url('Exo2-BoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('Exo2-BoldItalic-webfont.woff') format('woff'),
|
||||
url('Exo2-BoldItalic-webfont.ttf') format('truetype'),
|
||||
url('Exo2-BoldItalic-webfont.svg#exo_2') format('svg');
|
||||
font-weight: 600;
|
||||
font-style: italic;
|
||||
}
|
297
src/assets/styles/imports.css
Normal file
@@ -0,0 +1,297 @@
|
||||
/****************************************************************************
|
||||
* It's Eric Woodward (dotcom)
|
||||
*
|
||||
* Copyright 2015-2018 Eric Woodward
|
||||
* Source released under CC0 Public Domain License v1.0
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
****************************************************************************/
|
||||
|
||||
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
|
||||
html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:0.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}
|
||||
|
||||
/****************************************************************************
|
||||
* Default settings
|
||||
****************************************************************************/
|
||||
|
||||
/* set options */
|
||||
@charset "UTF-8";
|
||||
@-ms-viewport {
|
||||
width: device-width;
|
||||
}
|
||||
|
||||
@viewport {
|
||||
width: device-width;
|
||||
}
|
||||
|
||||
/* apply a natural box layout model to all elements */
|
||||
*, *:before, *:after {
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Fix 300ms Delay */
|
||||
a, button {
|
||||
-ms-touch-action: manipulation; /* IE10 */
|
||||
touch-action: manipulation; /* IE11+ */
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Grid settings (http://www.responsivegridsystem.com/)
|
||||
****************************************************************************/
|
||||
|
||||
.section {
|
||||
clear: both;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.group:before,
|
||||
.group:after {
|
||||
content:"";
|
||||
display:table;
|
||||
}
|
||||
.group:after {
|
||||
clear:both;
|
||||
}
|
||||
.group {
|
||||
zoom:1; /* For IE 6/7 (trigger hasLayout) */
|
||||
}
|
||||
|
||||
.col {
|
||||
display: block;
|
||||
float:left;
|
||||
margin: 1% 0 1% 0%;
|
||||
}
|
||||
|
||||
.col:first-child { margin-left: 0; } /* all browsers except IE6 and lower */
|
||||
|
||||
@media only screen and (min-width: 30em) {
|
||||
.col {
|
||||
margin: 1% 0 1% 1.6%;
|
||||
}
|
||||
}
|
||||
|
||||
.span_6_of_6 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_5_of_6 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_4_of_6 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_3_of_6 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_2_of_6 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_1_of_6 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 30em) {
|
||||
.span_6_of_6 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.span_5_of_6 {
|
||||
width: 83.06%;
|
||||
}
|
||||
|
||||
.span_4_of_6 {
|
||||
width: 66.13%;
|
||||
}
|
||||
|
||||
.span_3_of_6 {
|
||||
width: 49.2%;
|
||||
}
|
||||
|
||||
.span_2_of_6 {
|
||||
width: 32.26%;
|
||||
}
|
||||
|
||||
.span_1_of_6 {
|
||||
width: 15.33%;
|
||||
}
|
||||
}
|
||||
|
||||
.span_5_of_5 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_4_of_5 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_3_of_5 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_2_of_5 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_1_of_5 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 30em) {
|
||||
.span_5_of_5 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.span_4_of_5 {
|
||||
width: 79.68%;
|
||||
}
|
||||
|
||||
.span_3_of_5 {
|
||||
width: 59.36%;
|
||||
}
|
||||
|
||||
.span_2_of_5 {
|
||||
width: 39.04%;
|
||||
}
|
||||
|
||||
.span_1_of_5 {
|
||||
width: 18.72%;
|
||||
}
|
||||
}
|
||||
|
||||
.span_4_of_4 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_3_of_4 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_2_of_4 {
|
||||
width: 100%;
|
||||
}
|
||||
.span_1_of_4 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 30em) {
|
||||
.span_4_of_4 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.span_3_of_4 {
|
||||
width: 74.6%;
|
||||
}
|
||||
|
||||
.span_2_of_4 {
|
||||
width: 49.2%;
|
||||
}
|
||||
|
||||
.span_1_of_4 {
|
||||
width: 23.8%;
|
||||
}
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Helper classes
|
||||
****************************************************************************/
|
||||
|
||||
.clearfix:before,
|
||||
.clearfix:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.clearfix:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
.pullRight{
|
||||
float: right;
|
||||
}
|
||||
|
||||
code, kbd, pre, samp {
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Print styles
|
||||
****************************************************************************/
|
||||
|
||||
@media print {
|
||||
* {
|
||||
text-shadow: none !important;
|
||||
color: #000 !important;
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
a,
|
||||
a:visited {
|
||||
text-decoration: underline;
|
||||
}
|
||||
a[href]:after {
|
||||
content: " (" attr(href) ")";
|
||||
}
|
||||
abbr[title]:after {
|
||||
content: " (" attr(title) ")";
|
||||
}
|
||||
a[href^="javascript:"]:after,
|
||||
a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
pre,
|
||||
blockquote {
|
||||
border: 1px solid #999;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
tr,
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
img {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
p,
|
||||
h2,
|
||||
h3 {
|
||||
orphans: 3;
|
||||
widows: 3;
|
||||
}
|
||||
h2,
|
||||
h3 {
|
||||
page-break-after: avoid;
|
||||
}
|
||||
select {
|
||||
background: #FFFDD7 !important;
|
||||
}
|
||||
.navbar {
|
||||
display: none;
|
||||
}
|
||||
.table td,
|
||||
.table th {
|
||||
background-color: #FFFDD7 !important;
|
||||
}
|
||||
.btn > .caret,
|
||||
.dropup > .btn > .caret {
|
||||
border-top-color: #000 !important;
|
||||
}
|
||||
.label {
|
||||
border: 1px solid #000;
|
||||
}
|
||||
.table {
|
||||
border-collapse: collapse !important;
|
||||
}
|
||||
.table-bordered th,
|
||||
.table-bordered td {
|
||||
border: 1px solid #ddd !important;
|
||||
}
|
||||
}
|