que-web 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +3 -3
- data/CHANGELOG.md +7 -0
- data/README.md +0 -12
- data/docker/Gemfile.lock +7 -7
- data/examples/rack/Gemfile.lock +14 -14
- data/examples/rack/boot.rb +2 -4
- data/examples/rack/config.ru +1 -3
- data/lib/que/web.rb +9 -2
- data/lib/que/web/viewmodels.rb +2 -0
- data/lib/que/web/viewmodels/job.rb +9 -0
- data/que-web.gemspec +4 -5
- data/spec/pager_spec.rb +12 -12
- data/spec/que/web_spec.rb +63 -0
- data/spec/viewmodels/dashboard_spec.rb +1 -1
- data/spec/viewmodels/job_list_spec.rb +4 -5
- data/spec/viewmodels/job_spec.rb +16 -4
- data/spec/web_spec.rb +6 -6
- data/web/public/styles/foundation.min.css +1 -1
- data/web/public/styles/normalize.min.css +1 -0
- data/web/views/failing.erb +7 -7
- data/web/views/index.erb +1 -1
- data/web/views/layout.erb +7 -7
- data/web/views/running.erb +4 -4
- data/web/views/scheduled.erb +7 -7
- data/web/views/show.erb +6 -6
- metadata +12 -29
- data/web/public/js/foundation.min.js +0 -3651
- data/web/public/js/vendor/fastclick.js +0 -9
- data/web/public/js/vendor/jquery.cookie.js +0 -8
- data/web/public/js/vendor/modernizr.js +0 -8
- data/web/public/js/vendor/placeholder.js +0 -2
- data/web/public/styles/normalize.css +0 -427
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
|
3
|
-
*
|
4
|
-
* @version 1.0.3
|
5
|
-
* @codingstandard ftlabs-jsv2
|
6
|
-
* @copyright The Financial Times Limited [All Rights Reserved]
|
7
|
-
* @license MIT License (see LICENSE.txt)
|
8
|
-
*/
|
9
|
-
function FastClick(a,b){"use strict";function c(a,b){return function(){return a.apply(b,arguments)}}var d;if(b=b||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=b.touchBoundary||10,this.layer=a,this.tapDelay=b.tapDelay||200,!FastClick.notNeeded(a)){for(var e=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],f=this,g=0,h=e.length;h>g;g++)f[e[g]]=c(f[e[g]],f);deviceIsAndroid&&(a.addEventListener("mouseover",this.onMouse,!0),a.addEventListener("mousedown",this.onMouse,!0),a.addEventListener("mouseup",this.onMouse,!0)),a.addEventListener("click",this.onClick,!0),a.addEventListener("touchstart",this.onTouchStart,!1),a.addEventListener("touchmove",this.onTouchMove,!1),a.addEventListener("touchend",this.onTouchEnd,!1),a.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(a.removeEventListener=function(b,c,d){var e=Node.prototype.removeEventListener;"click"===b?e.call(a,b,c.hijacked||c,d):e.call(a,b,c,d)},a.addEventListener=function(b,c,d){var e=Node.prototype.addEventListener;"click"===b?e.call(a,b,c.hijacked||(c.hijacked=function(a){a.propagationStopped||c(a)}),d):e.call(a,b,c,d)}),"function"==typeof a.onclick&&(d=a.onclick,a.addEventListener("click",function(a){d(a)},!1),a.onclick=null)}}var deviceIsAndroid=navigator.userAgent.indexOf("Android")>0,deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent),deviceIsIOS4=deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent),deviceIsIOSWithBadTarget=deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent),deviceIsBlackBerry10=navigator.userAgent.indexOf("BB10")>0;FastClick.prototype.needsClick=function(a){"use strict";switch(a.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(a.disabled)return!0;break;case"input":if(deviceIsIOS&&"file"===a.type||a.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(a.className)},FastClick.prototype.needsFocus=function(a){"use strict";switch(a.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!deviceIsAndroid;case"input":switch(a.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!a.disabled&&!a.readOnly;default:return/\bneedsfocus\b/.test(a.className)}},FastClick.prototype.sendClick=function(a,b){"use strict";var c,d;document.activeElement&&document.activeElement!==a&&document.activeElement.blur(),d=b.changedTouches[0],c=document.createEvent("MouseEvents"),c.initMouseEvent(this.determineEventType(a),!0,!0,window,1,d.screenX,d.screenY,d.clientX,d.clientY,!1,!1,!1,!1,0,null),c.forwardedTouchEvent=!0,a.dispatchEvent(c)},FastClick.prototype.determineEventType=function(a){"use strict";return deviceIsAndroid&&"select"===a.tagName.toLowerCase()?"mousedown":"click"},FastClick.prototype.focus=function(a){"use strict";var b;deviceIsIOS&&a.setSelectionRange&&0!==a.type.indexOf("date")&&"time"!==a.type?(b=a.value.length,a.setSelectionRange(b,b)):a.focus()},FastClick.prototype.updateScrollParent=function(a){"use strict";var b,c;if(b=a.fastClickScrollParent,!b||!b.contains(a)){c=a;do{if(c.scrollHeight>c.offsetHeight){b=c,a.fastClickScrollParent=c;break}c=c.parentElement}while(c)}b&&(b.fastClickLastScrollTop=b.scrollTop)},FastClick.prototype.getTargetElementFromEventTarget=function(a){"use strict";return a.nodeType===Node.TEXT_NODE?a.parentNode:a},FastClick.prototype.onTouchStart=function(a){"use strict";var b,c,d;if(a.targetTouches.length>1)return!0;if(b=this.getTargetElementFromEventTarget(a.target),c=a.targetTouches[0],deviceIsIOS){if(d=window.getSelection(),d.rangeCount&&!d.isCollapsed)return!0;if(!deviceIsIOS4){if(c.identifier&&c.identifier===this.lastTouchIdentifier)return a.preventDefault(),!1;this.lastTouchIdentifier=c.identifier,this.updateScrollParent(b)}}return this.trackingClick=!0,this.trackingClickStart=a.timeStamp,this.targetElement=b,this.touchStartX=c.pageX,this.touchStartY=c.pageY,a.timeStamp-this.lastClickTime<this.tapDelay&&a.preventDefault(),!0},FastClick.prototype.touchHasMoved=function(a){"use strict";var b=a.changedTouches[0],c=this.touchBoundary;return Math.abs(b.pageX-this.touchStartX)>c||Math.abs(b.pageY-this.touchStartY)>c?!0:!1},FastClick.prototype.onTouchMove=function(a){"use strict";return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(a.target)||this.touchHasMoved(a))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},FastClick.prototype.findControl=function(a){"use strict";return void 0!==a.control?a.control:a.htmlFor?document.getElementById(a.htmlFor):a.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},FastClick.prototype.onTouchEnd=function(a){"use strict";var b,c,d,e,f,g=this.targetElement;if(!this.trackingClick)return!0;if(a.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(this.cancelNextClick=!1,this.lastClickTime=a.timeStamp,c=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,deviceIsIOSWithBadTarget&&(f=a.changedTouches[0],g=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)||g,g.fastClickScrollParent=this.targetElement.fastClickScrollParent),d=g.tagName.toLowerCase(),"label"===d){if(b=this.findControl(g)){if(this.focus(g),deviceIsAndroid)return!1;g=b}}else if(this.needsFocus(g))return a.timeStamp-c>100||deviceIsIOS&&window.top!==window&&"input"===d?(this.targetElement=null,!1):(this.focus(g),this.sendClick(g,a),deviceIsIOS&&"select"===d||(this.targetElement=null,a.preventDefault()),!1);return deviceIsIOS&&!deviceIsIOS4&&(e=g.fastClickScrollParent,e&&e.fastClickLastScrollTop!==e.scrollTop)?!0:(this.needsClick(g)||(a.preventDefault(),this.sendClick(g,a)),!1)},FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1,this.targetElement=null},FastClick.prototype.onMouse=function(a){"use strict";return this.targetElement?a.forwardedTouchEvent?!0:a.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)?(a.stopImmediatePropagation?a.stopImmediatePropagation():a.propagationStopped=!0,a.stopPropagation(),a.preventDefault(),!1):!0:!0},FastClick.prototype.onClick=function(a){"use strict";var b;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===a.target.type&&0===a.detail?!0:(b=this.onMouse(a),b||(this.targetElement=null),b)},FastClick.prototype.destroy=function(){"use strict";var a=this.layer;deviceIsAndroid&&(a.removeEventListener("mouseover",this.onMouse,!0),a.removeEventListener("mousedown",this.onMouse,!0),a.removeEventListener("mouseup",this.onMouse,!0)),a.removeEventListener("click",this.onClick,!0),a.removeEventListener("touchstart",this.onTouchStart,!1),a.removeEventListener("touchmove",this.onTouchMove,!1),a.removeEventListener("touchend",this.onTouchEnd,!1),a.removeEventListener("touchcancel",this.onTouchCancel,!1)},FastClick.notNeeded=function(a){"use strict";var b,c,d;if("undefined"==typeof window.ontouchstart)return!0;if(c=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!deviceIsAndroid)return!0;if(b=document.querySelector("meta[name=viewport]")){if(-1!==b.content.indexOf("user-scalable=no"))return!0;if(c>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(deviceIsBlackBerry10&&(d=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),d[1]>=10&&d[2]>=3&&(b=document.querySelector("meta[name=viewport]")))){if(-1!==b.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===a.style.msTouchAction?!0:!1},FastClick.attach=function(a,b){"use strict";return new FastClick(a,b)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){"use strict";return FastClick}):"undefined"!=typeof module&&module.exports?(module.exports=FastClick.attach,module.exports.FastClick=FastClick):window.FastClick=FastClick;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery Cookie Plugin v1.4.1
|
3
|
-
* https://github.com/carhartl/jquery-cookie
|
4
|
-
*
|
5
|
-
* Copyright 2013 Klaus Hartl
|
6
|
-
* Released under the MIT license
|
7
|
-
*/
|
8
|
-
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Modernizr v2.8.3
|
3
|
-
* www.modernizr.com
|
4
|
-
*
|
5
|
-
* Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
|
6
|
-
* Available under the BSD and MIT licenses: www.modernizr.com/license/
|
7
|
-
*/
|
8
|
-
window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){return d(x.join(a+";")+(b||""))}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&t[e]!==c)return"pfx"==b?e:!0}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return d===!1?a[e]:f(g,"function")?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+z.join(d+" ")+d).split(" ");return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+" "+A.join(d+" ")+d).split(" "),i(e,b,c))}function k(){o.input=function(c){for(var d=0,e=c.length;e>d;d++)E[c[d]]=!!(c[d]in u);return E.list&&(E.list=!(!b.createElement("datalist")||!a.HTMLDataListElement)),E}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),o.inputtypes=function(a){for(var d,e,f,g=0,h=a.length;h>g;g++)u.setAttribute("type",e=a[g]),d="text"!==u.type,d&&(u.value=v,u.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&u.style.WebkitAppearance!==c?(q.appendChild(u),f=b.defaultView,d=f.getComputedStyle&&"textfield"!==f.getComputedStyle(u,null).WebkitAppearance&&0!==u.offsetHeight,q.removeChild(u)):/^(search|tel)$/.test(e)||(d=/^(url|email)$/.test(e)?u.checkValidity&&u.checkValidity()===!1:u.value!=v)),D[a[g]]=!!d;return D}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var l,m,n="2.8.3",o={},p=!0,q=b.documentElement,r="modernizr",s=b.createElement(r),t=s.style,u=b.createElement("input"),v=":)",w={}.toString,x=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",z=y.split(" "),A=y.toLowerCase().split(" "),B={svg:"http://www.w3.org/2000/svg"},C={},D={},E={},F=[],G=F.slice,H=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:r+(d+1),j.appendChild(h);return f=["­",'<style id="s',r,'">',a,"</style>"].join(""),j.id=r,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=q.style.overflow,q.style.overflow="hidden",q.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),q.style.overflow=i),!!g},I=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b)&&c(b).matches||!1;var d;return H("@media "+b+" { #"+r+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},J=function(){function a(a,e){e=e||b.createElement(d[a]||"div"),a="on"+a;var g=a in e;return g||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(a,""),g=f(e[a],"function"),f(e[a],"undefined")||(e[a]=c),e.removeAttribute(a))),e=null,g}var d={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return a}(),K={}.hasOwnProperty;m=f(K,"undefined")||f(K.call,"undefined")?function(a,b){return b in a&&f(a.constructor.prototype[b],"undefined")}:function(a,b){return K.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=G.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(G.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(G.call(arguments)))};return d}),C.flexbox=function(){return j("flexWrap")},C.flexboxlegacy=function(){return j("boxDirection")},C.canvas=function(){var a=b.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))},C.canvastext=function(){return!(!o.canvas||!f(b.createElement("canvas").getContext("2d").fillText,"function"))},C.webgl=function(){return!!a.WebGLRenderingContext},C.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:H(["@media (",x.join("touch-enabled),("),r,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},C.geolocation=function(){return"geolocation"in navigator},C.postmessage=function(){return!!a.postMessage},C.websqldatabase=function(){return!!a.openDatabase},C.indexedDB=function(){return!!j("indexedDB",a)},C.hashchange=function(){return J("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},C.history=function(){return!(!a.history||!history.pushState)},C.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},C.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},C.rgba=function(){return d("background-color:rgba(150,255,150,.5)"),g(t.backgroundColor,"rgba")},C.hsla=function(){return d("background-color:hsla(120,40%,100%,.5)"),g(t.backgroundColor,"rgba")||g(t.backgroundColor,"hsla")},C.multiplebgs=function(){return d("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(t.background)},C.backgroundsize=function(){return j("backgroundSize")},C.borderimage=function(){return j("borderImage")},C.borderradius=function(){return j("borderRadius")},C.boxshadow=function(){return j("boxShadow")},C.textshadow=function(){return""===b.createElement("div").style.textShadow},C.opacity=function(){return e("opacity:.55"),/^0.55$/.test(t.opacity)},C.cssanimations=function(){return j("animationName")},C.csscolumns=function(){return j("columnCount")},C.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return d((a+"-webkit- ".split(" ").join(b+a)+x.join(c+a)).slice(0,-a.length)),g(t.backgroundImage,"gradient")},C.cssreflections=function(){return j("boxReflect")},C.csstransforms=function(){return!!j("transform")},C.csstransforms3d=function(){var a=!!j("perspective");return a&&"webkitPerspective"in q.style&&H("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b){a=9===b.offsetLeft&&3===b.offsetHeight}),a},C.csstransitions=function(){return j("transition")},C.fontface=function(){var a;return H('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},C.generatedcontent=function(){var a;return H(["#",r,"{font:0/0 a}#",r,':after{content:"',v,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},C.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(d){}return c},C.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(d){}return c},C.localstorage=function(){try{return localStorage.setItem(r,r),localStorage.removeItem(r),!0}catch(a){return!1}},C.sessionstorage=function(){try{return sessionStorage.setItem(r,r),sessionStorage.removeItem(r),!0}catch(a){return!1}},C.webworkers=function(){return!!a.Worker},C.applicationcache=function(){return!!a.applicationCache},C.svg=function(){return!!b.createElementNS&&!!b.createElementNS(B.svg,"svg").createSVGRect},C.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==B.svg},C.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(w.call(b.createElementNS(B.svg,"animate")))},C.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(w.call(b.createElementNS(B.svg,"clipPath")))};for(var L in C)m(C,L)&&(l=L.toLowerCase(),o[l]=C[L](),F.push((o[l]?"":"no-")+l));return o.input||k(),o.addTest=function(a,b){if("object"==typeof a)for(var d in a)m(a,d)&&o.addTest(d,a[d]);else{if(a=a.toLowerCase(),o[a]!==c)return o;b="function"==typeof b?b():b,"undefined"!=typeof p&&p&&(q.className+=" "+(b?"":"no-")+a),o[a]=b}return o},d(""),s=u=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function i(a){a||(a=b);var d=e(a);return!s.shivCSS||j||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||h(a,d),a}var j,k,l="3.7.0",m=a.html5||{},n=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,o=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,p="_html5shiv",q=0,r={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),o._version=n,o._prefixes=x,o._domPrefixes=A,o._cssomPrefixes=z,o.mq=I,o.hasEvent=J,o.testProp=function(a){return h([a])},o.testAllProps=j,o.testStyles=H,o.prefixed=function(a,b,c){return b?j(a,b,c):j(a,"pfx")},q.className=q.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(p?" js "+F.join(" "):""),o}(this,this.document);
|
@@ -1,2 +0,0 @@
|
|
1
|
-
/*! http://mths.be/placeholder v2.0.8 by @mathias */
|
2
|
-
!function(a,b,c){function d(a){var b={},d=/^jQuery\d+$/;return c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)}),b}function e(a,b){var d=this,e=c(d);if(d.value==e.attr("placeholder")&&e.hasClass("placeholder"))if(e.data("placeholder-password")){if(e=e.hide().next().show().attr("id",e.removeAttr("id").data("placeholder-id")),a===!0)return e[0].value=b;e.focus()}else d.value="",e.removeClass("placeholder"),d==g()&&d.select()}function f(){var a,b=this,f=c(b),g=this.id;if(""==b.value){if("password"==b.type){if(!f.data("placeholder-textinput")){try{a=f.clone().attr({type:"text"})}catch(h){a=c("<input>").attr(c.extend(d(this),{type:"text"}))}a.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",e),f.data({"placeholder-textinput":a,"placeholder-id":g}).before(a)}f=f.removeAttr("id").hide().prev().attr("id",g).show()}f.addClass("placeholder"),f[0].value=f.attr("placeholder")}else f.removeClass("placeholder")}function g(){try{return b.activeElement}catch(a){}}var h,i,j="[object OperaMini]"==Object.prototype.toString.call(a.operamini),k="placeholder"in b.createElement("input")&&!j,l="placeholder"in b.createElement("textarea")&&!j,m=c.fn,n=c.valHooks,o=c.propHooks;k&&l?(i=m.placeholder=function(){return this},i.input=i.textarea=!0):(i=m.placeholder=function(){var a=this;return a.filter((k?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder"),a},i.input=k,i.textarea=l,h={get:function(a){var b=c(a),d=b.data("placeholder-password");return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),h=d.data("placeholder-password");return h?h[0].value=b:d.data("placeholder-enabled")?(""==b?(a.value=b,a!=g()&&f.call(a)):d.hasClass("placeholder")?e.call(a,!0,b)||(a.value=b):a.value=b,d):a.value=b}},k||(n.input=h,o.value=h),l||(n.textarea=h,o.value=h),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);setTimeout(function(){a.each(f)},10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery);
|
@@ -1,427 +0,0 @@
|
|
1
|
-
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
2
|
-
|
3
|
-
/**
|
4
|
-
* 1. Set default font family to sans-serif.
|
5
|
-
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
6
|
-
* user zoom.
|
7
|
-
*/
|
8
|
-
|
9
|
-
html {
|
10
|
-
font-family: sans-serif; /* 1 */
|
11
|
-
-ms-text-size-adjust: 100%; /* 2 */
|
12
|
-
-webkit-text-size-adjust: 100%; /* 2 */
|
13
|
-
}
|
14
|
-
|
15
|
-
/**
|
16
|
-
* Remove default margin.
|
17
|
-
*/
|
18
|
-
|
19
|
-
body {
|
20
|
-
margin: 0;
|
21
|
-
}
|
22
|
-
|
23
|
-
/* HTML5 display definitions
|
24
|
-
========================================================================== */
|
25
|
-
|
26
|
-
/**
|
27
|
-
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
28
|
-
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
29
|
-
* and Firefox.
|
30
|
-
* Correct `block` display not defined for `main` in IE 11.
|
31
|
-
*/
|
32
|
-
|
33
|
-
article,
|
34
|
-
aside,
|
35
|
-
details,
|
36
|
-
figcaption,
|
37
|
-
figure,
|
38
|
-
footer,
|
39
|
-
header,
|
40
|
-
hgroup,
|
41
|
-
main,
|
42
|
-
menu,
|
43
|
-
nav,
|
44
|
-
section,
|
45
|
-
summary {
|
46
|
-
display: block;
|
47
|
-
}
|
48
|
-
|
49
|
-
/**
|
50
|
-
* 1. Correct `inline-block` display not defined in IE 8/9.
|
51
|
-
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
52
|
-
*/
|
53
|
-
|
54
|
-
audio,
|
55
|
-
canvas,
|
56
|
-
progress,
|
57
|
-
video {
|
58
|
-
display: inline-block; /* 1 */
|
59
|
-
vertical-align: baseline; /* 2 */
|
60
|
-
}
|
61
|
-
|
62
|
-
/**
|
63
|
-
* Prevent modern browsers from displaying `audio` without controls.
|
64
|
-
* Remove excess height in iOS 5 devices.
|
65
|
-
*/
|
66
|
-
|
67
|
-
audio:not([controls]) {
|
68
|
-
display: none;
|
69
|
-
height: 0;
|
70
|
-
}
|
71
|
-
|
72
|
-
/**
|
73
|
-
* Address `[hidden]` styling not present in IE 8/9/10.
|
74
|
-
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
75
|
-
*/
|
76
|
-
|
77
|
-
[hidden],
|
78
|
-
template {
|
79
|
-
display: none;
|
80
|
-
}
|
81
|
-
|
82
|
-
/* Links
|
83
|
-
========================================================================== */
|
84
|
-
|
85
|
-
/**
|
86
|
-
* Remove the gray background color from active links in IE 10.
|
87
|
-
*/
|
88
|
-
|
89
|
-
a {
|
90
|
-
background-color: transparent;
|
91
|
-
}
|
92
|
-
|
93
|
-
/**
|
94
|
-
* Improve readability when focused and also mouse hovered in all browsers.
|
95
|
-
*/
|
96
|
-
|
97
|
-
a:active,
|
98
|
-
a:hover {
|
99
|
-
outline: 0;
|
100
|
-
}
|
101
|
-
|
102
|
-
/* Text-level semantics
|
103
|
-
========================================================================== */
|
104
|
-
|
105
|
-
/**
|
106
|
-
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
107
|
-
*/
|
108
|
-
|
109
|
-
abbr[title] {
|
110
|
-
border-bottom: 1px dotted;
|
111
|
-
}
|
112
|
-
|
113
|
-
/**
|
114
|
-
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
115
|
-
*/
|
116
|
-
|
117
|
-
b,
|
118
|
-
strong {
|
119
|
-
font-weight: bold;
|
120
|
-
}
|
121
|
-
|
122
|
-
/**
|
123
|
-
* Address styling not present in Safari and Chrome.
|
124
|
-
*/
|
125
|
-
|
126
|
-
dfn {
|
127
|
-
font-style: italic;
|
128
|
-
}
|
129
|
-
|
130
|
-
/**
|
131
|
-
* Address variable `h1` font-size and margin within `section` and `article`
|
132
|
-
* contexts in Firefox 4+, Safari, and Chrome.
|
133
|
-
*/
|
134
|
-
|
135
|
-
h1 {
|
136
|
-
font-size: 2em;
|
137
|
-
margin: 0.67em 0;
|
138
|
-
}
|
139
|
-
|
140
|
-
/**
|
141
|
-
* Address styling not present in IE 8/9.
|
142
|
-
*/
|
143
|
-
|
144
|
-
mark {
|
145
|
-
background: #ff0;
|
146
|
-
color: #000;
|
147
|
-
}
|
148
|
-
|
149
|
-
/**
|
150
|
-
* Address inconsistent and variable font size in all browsers.
|
151
|
-
*/
|
152
|
-
|
153
|
-
small {
|
154
|
-
font-size: 80%;
|
155
|
-
}
|
156
|
-
|
157
|
-
/**
|
158
|
-
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
159
|
-
*/
|
160
|
-
|
161
|
-
sub,
|
162
|
-
sup {
|
163
|
-
font-size: 75%;
|
164
|
-
line-height: 0;
|
165
|
-
position: relative;
|
166
|
-
vertical-align: baseline;
|
167
|
-
}
|
168
|
-
|
169
|
-
sup {
|
170
|
-
top: -0.5em;
|
171
|
-
}
|
172
|
-
|
173
|
-
sub {
|
174
|
-
bottom: -0.25em;
|
175
|
-
}
|
176
|
-
|
177
|
-
/* Embedded content
|
178
|
-
========================================================================== */
|
179
|
-
|
180
|
-
/**
|
181
|
-
* Remove border when inside `a` element in IE 8/9/10.
|
182
|
-
*/
|
183
|
-
|
184
|
-
img {
|
185
|
-
border: 0;
|
186
|
-
}
|
187
|
-
|
188
|
-
/**
|
189
|
-
* Correct overflow not hidden in IE 9/10/11.
|
190
|
-
*/
|
191
|
-
|
192
|
-
svg:not(:root) {
|
193
|
-
overflow: hidden;
|
194
|
-
}
|
195
|
-
|
196
|
-
/* Grouping content
|
197
|
-
========================================================================== */
|
198
|
-
|
199
|
-
/**
|
200
|
-
* Address margin not present in IE 8/9 and Safari.
|
201
|
-
*/
|
202
|
-
|
203
|
-
figure {
|
204
|
-
margin: 1em 40px;
|
205
|
-
}
|
206
|
-
|
207
|
-
/**
|
208
|
-
* Address differences between Firefox and other browsers.
|
209
|
-
*/
|
210
|
-
|
211
|
-
hr {
|
212
|
-
-moz-box-sizing: content-box;
|
213
|
-
box-sizing: content-box;
|
214
|
-
height: 0;
|
215
|
-
}
|
216
|
-
|
217
|
-
/**
|
218
|
-
* Contain overflow in all browsers.
|
219
|
-
*/
|
220
|
-
|
221
|
-
pre {
|
222
|
-
overflow: auto;
|
223
|
-
}
|
224
|
-
|
225
|
-
/**
|
226
|
-
* Address odd `em`-unit font size rendering in all browsers.
|
227
|
-
*/
|
228
|
-
|
229
|
-
code,
|
230
|
-
kbd,
|
231
|
-
pre,
|
232
|
-
samp {
|
233
|
-
font-family: monospace, monospace;
|
234
|
-
font-size: 1em;
|
235
|
-
}
|
236
|
-
|
237
|
-
/* Forms
|
238
|
-
========================================================================== */
|
239
|
-
|
240
|
-
/**
|
241
|
-
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
242
|
-
* styling of `select`, unless a `border` property is set.
|
243
|
-
*/
|
244
|
-
|
245
|
-
/**
|
246
|
-
* 1. Correct color not being inherited.
|
247
|
-
* Known issue: affects color of disabled elements.
|
248
|
-
* 2. Correct font properties not being inherited.
|
249
|
-
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
250
|
-
*/
|
251
|
-
|
252
|
-
button,
|
253
|
-
input,
|
254
|
-
optgroup,
|
255
|
-
select,
|
256
|
-
textarea {
|
257
|
-
color: inherit; /* 1 */
|
258
|
-
font: inherit; /* 2 */
|
259
|
-
margin: 0; /* 3 */
|
260
|
-
}
|
261
|
-
|
262
|
-
/**
|
263
|
-
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
264
|
-
*/
|
265
|
-
|
266
|
-
button {
|
267
|
-
overflow: visible;
|
268
|
-
}
|
269
|
-
|
270
|
-
/**
|
271
|
-
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
272
|
-
* All other form control elements do not inherit `text-transform` values.
|
273
|
-
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
274
|
-
* Correct `select` style inheritance in Firefox.
|
275
|
-
*/
|
276
|
-
|
277
|
-
button,
|
278
|
-
select {
|
279
|
-
text-transform: none;
|
280
|
-
}
|
281
|
-
|
282
|
-
/**
|
283
|
-
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
284
|
-
* and `video` controls.
|
285
|
-
* 2. Correct inability to style clickable `input` types in iOS.
|
286
|
-
* 3. Improve usability and consistency of cursor style between image-type
|
287
|
-
* `input` and others.
|
288
|
-
*/
|
289
|
-
|
290
|
-
button,
|
291
|
-
html input[type="button"], /* 1 */
|
292
|
-
input[type="reset"],
|
293
|
-
input[type="submit"] {
|
294
|
-
-webkit-appearance: button; /* 2 */
|
295
|
-
cursor: pointer; /* 3 */
|
296
|
-
}
|
297
|
-
|
298
|
-
/**
|
299
|
-
* Re-set default cursor for disabled elements.
|
300
|
-
*/
|
301
|
-
|
302
|
-
button[disabled],
|
303
|
-
html input[disabled] {
|
304
|
-
cursor: default;
|
305
|
-
}
|
306
|
-
|
307
|
-
/**
|
308
|
-
* Remove inner padding and border in Firefox 4+.
|
309
|
-
*/
|
310
|
-
|
311
|
-
button::-moz-focus-inner,
|
312
|
-
input::-moz-focus-inner {
|
313
|
-
border: 0;
|
314
|
-
padding: 0;
|
315
|
-
}
|
316
|
-
|
317
|
-
/**
|
318
|
-
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
319
|
-
* the UA stylesheet.
|
320
|
-
*/
|
321
|
-
|
322
|
-
input {
|
323
|
-
line-height: normal;
|
324
|
-
}
|
325
|
-
|
326
|
-
/**
|
327
|
-
* It's recommended that you don't attempt to style these elements.
|
328
|
-
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
329
|
-
*
|
330
|
-
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
331
|
-
* 2. Remove excess padding in IE 8/9/10.
|
332
|
-
*/
|
333
|
-
|
334
|
-
input[type="checkbox"],
|
335
|
-
input[type="radio"] {
|
336
|
-
box-sizing: border-box; /* 1 */
|
337
|
-
padding: 0; /* 2 */
|
338
|
-
}
|
339
|
-
|
340
|
-
/**
|
341
|
-
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
342
|
-
* `font-size` values of the `input`, it causes the cursor style of the
|
343
|
-
* decrement button to change from `default` to `text`.
|
344
|
-
*/
|
345
|
-
|
346
|
-
input[type="number"]::-webkit-inner-spin-button,
|
347
|
-
input[type="number"]::-webkit-outer-spin-button {
|
348
|
-
height: auto;
|
349
|
-
}
|
350
|
-
|
351
|
-
/**
|
352
|
-
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
353
|
-
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
354
|
-
* (include `-moz` to future-proof).
|
355
|
-
*/
|
356
|
-
|
357
|
-
input[type="search"] {
|
358
|
-
-webkit-appearance: textfield; /* 1 */
|
359
|
-
-moz-box-sizing: content-box;
|
360
|
-
-webkit-box-sizing: content-box; /* 2 */
|
361
|
-
box-sizing: content-box;
|
362
|
-
}
|
363
|
-
|
364
|
-
/**
|
365
|
-
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
366
|
-
* Safari (but not Chrome) clips the cancel button when the search input has
|
367
|
-
* padding (and `textfield` appearance).
|
368
|
-
*/
|
369
|
-
|
370
|
-
input[type="search"]::-webkit-search-cancel-button,
|
371
|
-
input[type="search"]::-webkit-search-decoration {
|
372
|
-
-webkit-appearance: none;
|
373
|
-
}
|
374
|
-
|
375
|
-
/**
|
376
|
-
* Define consistent border, margin, and padding.
|
377
|
-
*/
|
378
|
-
|
379
|
-
fieldset {
|
380
|
-
border: 1px solid #c0c0c0;
|
381
|
-
margin: 0 2px;
|
382
|
-
padding: 0.35em 0.625em 0.75em;
|
383
|
-
}
|
384
|
-
|
385
|
-
/**
|
386
|
-
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
387
|
-
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
388
|
-
*/
|
389
|
-
|
390
|
-
legend {
|
391
|
-
border: 0; /* 1 */
|
392
|
-
padding: 0; /* 2 */
|
393
|
-
}
|
394
|
-
|
395
|
-
/**
|
396
|
-
* Remove default vertical scrollbar in IE 8/9/10/11.
|
397
|
-
*/
|
398
|
-
|
399
|
-
textarea {
|
400
|
-
overflow: auto;
|
401
|
-
}
|
402
|
-
|
403
|
-
/**
|
404
|
-
* Don't inherit the `font-weight` (applied by a rule above).
|
405
|
-
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
406
|
-
*/
|
407
|
-
|
408
|
-
optgroup {
|
409
|
-
font-weight: bold;
|
410
|
-
}
|
411
|
-
|
412
|
-
/* Tables
|
413
|
-
========================================================================== */
|
414
|
-
|
415
|
-
/**
|
416
|
-
* Remove most spacing between table cells.
|
417
|
-
*/
|
418
|
-
|
419
|
-
table {
|
420
|
-
border-collapse: collapse;
|
421
|
-
border-spacing: 0;
|
422
|
-
}
|
423
|
-
|
424
|
-
td,
|
425
|
-
th {
|
426
|
-
padding: 0;
|
427
|
-
}
|