feedbackandscreencap 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/.rbenv-version +1 -0
- data/.rspec +2 -0
- data/Gemfile +12 -0
- data/LICENSE +22 -0
- data/README.md +40 -0
- data/Rakefile +2 -0
- data/app/assets/javascripts/feedback.js +664 -0
- data/app/assets/javascripts/libs/html2canvas.js +3246 -0
- data/app/assets/javascripts/libs/html2canvas.min.js +70 -0
- data/app/assets/stylesheets/feedback/base.css +738 -0
- data/app/controllers/feedback_and_screencaps_controller.rb +51 -0
- data/app/models/feedback_and_screencap.rb +5 -0
- data/app/views/feedback_and_screencaps/index.html.erb +25 -0
- data/app/views/feedback_and_screencaps/show.html.erb +15 -0
- data/config/routes.rb +3 -0
- data/feedbackandscreencap.gemspec +23 -0
- data/lib/application_controller.rb +13 -0
- data/lib/engine.rb +11 -0
- data/lib/feedbackandscreencap.rb +6 -0
- data/lib/feedbackandscreencap/version.rb +3 -0
- data/lib/rails/generators/feedbackandscreencap/feedbackandscreencap_generator.rb +56 -0
- data/lib/rails/generators/feedbackandscreencap/templates/initializer.rb +5 -0
- data/lib/rails/generators/feedbackandscreencap/templates/migration.rb +9 -0
- data/lib/rails/generators/feedbackandscreencap/templates/schema.rb +12 -0
- data/spec/models/feedbackandscreencap_spec.rb +10 -0
- data/spec/spec_helper.rb +35 -0
- metadata +170 -0
@@ -0,0 +1,70 @@
|
|
1
|
+
/*
|
2
|
+
html2canvas v0.34 <http://html2canvas.hertzen.com>
|
3
|
+
Copyright (c) 2011 Niklas von Hertzen. All rights reserved.
|
4
|
+
http://www.twitter.com/niklasvh
|
5
|
+
|
6
|
+
Released under MIT License
|
7
|
+
*/
|
8
|
+
(function(u,B,n){function D(c){j.logging&&u.console&&u.console.log&&u.console.log(c)}function T(c,i){var f=[];return{storage:f,width:c,height:i,fillRect:function(){f.push({type:"function",name:"fillRect",arguments:arguments})},drawShape:function(){var a=[];f.push({type:"function",name:"drawShape",arguments:a});return{moveTo:function(){a.push({name:"moveTo",arguments:arguments})},lineTo:function(){a.push({name:"lineTo",arguments:arguments})},bezierCurveTo:function(){a.push({name:"bezierCurveTo",arguments:arguments})},
|
9
|
+
quadraticCurveTo:function(){a.push({name:"quadraticCurveTo",arguments:arguments})}}},drawImage:function(){f.push({type:"function",name:"drawImage",arguments:arguments})},fillText:function(){f.push({type:"function",name:"fillText",arguments:arguments})},setVariable:function(a,c){f.push({type:"variable",name:a,arguments:c})}}}var j={},S,L;j.Util={};j.Util.backgroundImage=function(c){if(/data:image\/.*;base64,/i.test(c)||/^(-webkit|-moz|linear-gradient|-o-)/.test(c))return c;c.toLowerCase().substr(0,
|
10
|
+
5)==='url("'?(c=c.substr(5),c=c.substr(0,c.length-2)):(c=c.substr(4),c=c.substr(0,c.length-1));return c};j.Util.Bounds=function(c){var i={};if(c.getBoundingClientRect)return c=c.getBoundingClientRect(),i.top=c.top,i.bottom=c.bottom||c.top+c.height,i.left=c.left,i.width=c.width||c.right-c.left,i.height=c.height||c.bottom-c.top,i};j.Util.getCSS=function(c,i){function f(a,b){var i=c.runtimeStyle&&c.runtimeStyle[a],d,g=c.style;if(!/^-?[0-9]+\.?[0-9]*(?:px)?$/i.test(b)&&/^-?\d/.test(b)){d=g.left;if(i)c.runtimeStyle.left=
|
11
|
+
c.currentStyle.left;g.left=a==="fontSize"?"1em":b||0;b=g.pixelLeft+"px";g.left=d;if(i)c.runtimeStyle.left=i}return!/^(thin|medium|thick)$/i.test(b)?Math.round(parseFloat(b))+"px":b}var a;if(u.getComputedStyle)void 0!==c&&(S=B.defaultView.getComputedStyle(c,null)),a=S[i],i==="backgroundPosition"?(a=(a.split(",")[0]||"0 0").split(" "),a[0]=a[0].indexOf("%")===-1?f(i+"X",a[0]):a[0],a[1]=a[1]===n?a[0]:a[1],a[1]=a[1].indexOf("%")===-1?f(i+"Y",a[1]):a[1]):/border(Top|Bottom)(Left|Right)Radius/.test(i)&&
|
12
|
+
(a=a.split(" "),a.length<=1&&(a[1]=a[0]),a[0]=parseInt(a[0],10),a[1]=parseInt(a[1],10));else if(c.currentStyle)if(i==="backgroundPosition")a=[f(i+"X",c.currentStyle[i+"X"]),f(i+"Y",c.currentStyle[i+"Y"])];else if(a=f(i,c.currentStyle[i]),/^(border)/i.test(i)&&/^(medium|thin|thick)$/i.test(a))switch(a){case "thin":a="1px";break;case "medium":a="0px";break;case "thick":a="5px"}return a};j.Util.BackgroundPosition=function(c,i,f){var c=j.Util.getCSS(c,"backgroundPosition"),a,e;c.length===1&&(a=c,c=[],
|
13
|
+
c[0]=a,c[1]=a);c[0].toString().indexOf("%")!==-1?(e=parseFloat(c[0])/100,a=i.width*e-f.width*e):a=parseInt(c[0],10);c[1].toString().indexOf("%")!==-1?(e=parseFloat(c[1])/100,i=i.height*e-f.height*e):i=parseInt(c[1],10);return{top:i,left:a}};j.Util.Extend=function(c,i){for(var f in c)c.hasOwnProperty(f)&&(i[f]=c[f]);return i};j.Util.Children=function(c){var i;try{i=c.nodeName&&c.nodeName.toUpperCase()==="IFRAME"?c.contentDocument||c.contentWindow.document:function(a){var c=[];a!==null&&function(a,
|
14
|
+
c){var e=a.length,i=0;if(typeof c.length==="number")for(var f=c.length;i<f;i++)a[e++]=c[i];else for(;c[i]!==n;)a[e++]=c[i++];a.length=e;return a}(c,a);return c}(c.childNodes)}catch(f){D("html2canvas.Util.Children failed with exception: "+f.message),i=[]}return i};(function(){j.Generate={};var c=[/^(-webkit-linear-gradient)\(([a-z\s]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-o-linear-gradient)\(([a-z\s]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-webkit-gradient)\((linear|radial),\s((?:\d{1,3}%?)\s(?:\d{1,3}%?),\s(?:\d{1,3}%?)\s(?:\d{1,3}%?))([\w\d\.\s,%\(\)-]+)\)$/,
|
15
|
+
/^(-moz-linear-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?))([\w\d\.\s,%\(\)]+)\)$/,/^(-webkit-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s([a-z-]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-moz-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s?([a-z-]*)([\w\d\.\s,%\(\)]+)\)$/,/^(-o-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s([a-z-]+)([\w\d\.\s,%\(\)]+)\)$/];j.Generate.parseGradient=function(i,f){var a,e,b=c.length,h,d,g,q;for(e=0;e<b;e+=1)if(h=i.match(c[e]))break;if(h)switch(h[1]){case "-webkit-linear-gradient":case "-o-linear-gradient":a=
|
16
|
+
{type:"linear",x0:null,y0:null,x1:null,y1:null,colorStops:[]};if(b=h[2].match(/\w+/g)){d=b.length;for(e=0;e<d;e+=1)switch(b[e]){case "top":a.y0=0;a.y1=f.height;break;case "right":a.x0=f.width;a.x1=0;break;case "bottom":a.y0=f.height;a.y1=0;break;case "left":a.x0=0,a.x1=f.width}}if(a.x0===null&&a.x1===null)a.x0=a.x1=f.width/2;if(a.y0===null&&a.y1===null)a.y0=a.y1=f.height/2;if(b=h[3].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}(?:%|px))?)+/g)){d=b.length;g=1/Math.max(d-
|
17
|
+
1,1);for(e=0;e<d;e+=1)q=b[e].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/),q[2]?(h=parseFloat(q[2]),h/=q[3]==="%"?100:f.width):h=e*g,a.colorStops.push({color:q[1],stop:h})}break;case "-webkit-gradient":a={type:h[2]==="radial"?"circle":h[2],x0:0,y0:0,x1:0,y1:0,colorStops:[]};if(b=h[3].match(/(\d{1,3})%?\s(\d{1,3})%?,\s(\d{1,3})%?\s(\d{1,3})%?/))a.x0=b[1]*f.width/100,a.y0=b[2]*f.height/100,a.x1=b[3]*f.width/100,a.y1=b[4]*f.height/100;if(b=h[4].match(/((?:from|to|color-stop)\((?:[0-9\.]+,\s)?(?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)\))+/g)){d=
|
18
|
+
b.length;for(e=0;e<d;e+=1)q=b[e].match(/(from|to|color-stop)\(([0-9\.]+)?(?:,\s)?((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\)/),h=parseFloat(q[2]),q[1]==="from"&&(h=0),q[1]==="to"&&(h=1),a.colorStops.push({color:q[3],stop:h})}break;case "-moz-linear-gradient":a={type:"linear",x0:0,y0:0,x1:0,y1:0,colorStops:[]};if(b=h[2].match(/(\d{1,3})%?\s(\d{1,3})%?/))a.x0=b[1]*f.width/100,a.y0=b[2]*f.height/100,a.x1=f.width-a.x0,a.y1=f.height-a.y0;if(b=h[3].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}%)?)+/g)){d=
|
19
|
+
b.length;g=1/Math.max(d-1,1);for(e=0;e<d;e+=1)q=b[e].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%)?/),q[2]?(h=parseFloat(q[2]),q[3]&&(h/=100)):h=e*g,a.colorStops.push({color:q[1],stop:h})}break;case "-webkit-radial-gradient":case "-moz-radial-gradient":case "-o-radial-gradient":a={type:"circle",x0:0,y0:0,x1:f.width,y1:f.height,cx:0,cy:0,rx:0,ry:0,colorStops:[]};if(b=h[2].match(/(\d{1,3})%?\s(\d{1,3})%?/))a.cx=b[1]*f.width/100,a.cy=b[2]*f.height/100;b=h[3].match(/\w+/);
|
20
|
+
q=h[4].match(/[a-z-]*/);if(b&&q)switch(q[0]){case "farthest-corner":case "cover":case "":e=Math.sqrt(Math.pow(a.cx,2)+Math.pow(a.cy,2));b=Math.sqrt(Math.pow(a.cx,2)+Math.pow(a.y1-a.cy,2));d=Math.sqrt(Math.pow(a.x1-a.cx,2)+Math.pow(a.y1-a.cy,2));q=Math.sqrt(Math.pow(a.x1-a.cx,2)+Math.pow(a.cy,2));a.rx=a.ry=Math.max(e,b,d,q);break;case "closest-corner":e=Math.sqrt(Math.pow(a.cx,2)+Math.pow(a.cy,2));b=Math.sqrt(Math.pow(a.cx,2)+Math.pow(a.y1-a.cy,2));d=Math.sqrt(Math.pow(a.x1-a.cx,2)+Math.pow(a.y1-a.cy,
|
21
|
+
2));q=Math.sqrt(Math.pow(a.x1-a.cx,2)+Math.pow(a.cy,2));a.rx=a.ry=Math.min(e,b,d,q);break;case "farthest-side":b[0]==="circle"?a.rx=a.ry=Math.max(a.cx,a.cy,a.x1-a.cx,a.y1-a.cy):(a.type=b[0],a.rx=Math.max(a.cx,a.x1-a.cx),a.ry=Math.max(a.cy,a.y1-a.cy));break;case "closest-side":case "contain":b[0]==="circle"?a.rx=a.ry=Math.min(a.cx,a.cy,a.x1-a.cx,a.y1-a.cy):(a.type=b[0],a.rx=Math.min(a.cx,a.x1-a.cx),a.ry=Math.min(a.cy,a.y1-a.cy))}if(b=h[5].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}(?:%|px))?)+/g)){d=
|
22
|
+
b.length;g=1/Math.max(d-1,1);for(e=0;e<d;e+=1)q=b[e].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/),q[2]?(h=parseFloat(q[2]),h/=q[3]==="%"?100:f.width):h=e*g,a.colorStops.push({color:q[1],stop:h})}}return a};j.Generate.Gradient=function(c,f){var a=B.createElement("canvas"),e=a.getContext("2d"),b,h,d,g,q;a.width=f.width;a.height=f.height;b=j.Generate.parseGradient(c,f);q=new Image;if(b)if(b.type==="linear"){h=e.createLinearGradient(b.x0,b.y0,b.x1,b.y1);d=
|
23
|
+
0;for(g=b.colorStops.length;d<g;d+=1)try{h.addColorStop(b.colorStops[d].stop,b.colorStops[d].color)}catch(u){D(["failed to add color stop: ",u,"; tried to add: ",b.colorStops[d],"; stop: ",d,"; in: ",c])}e.fillStyle=h;e.fillRect(0,0,f.width,f.height);q.src=a.toDataURL()}else if(b.type==="circle"){h=e.createRadialGradient(b.cx,b.cy,0,b.cx,b.cy,b.rx);d=0;for(g=b.colorStops.length;d<g;d+=1)try{h.addColorStop(b.colorStops[d].stop,b.colorStops[d].color)}catch(n){D(["failed to add color stop: ",n,"; tried to add: ",
|
24
|
+
b.colorStops[d],"; stop: ",d,"; in: ",c])}e.fillStyle=h;e.fillRect(0,0,f.width,f.height);q.src=a.toDataURL()}else if(b.type==="ellipse"){var s=B.createElement("canvas"),v=s.getContext("2d");h=Math.max(b.rx,b.ry);var K=h*2,t;s.width=s.height=K;h=v.createRadialGradient(b.rx,b.ry,0,b.rx,b.ry,h);d=0;for(g=b.colorStops.length;d<g;d+=1)try{h.addColorStop(b.colorStops[d].stop,b.colorStops[d].color)}catch(w){D(["failed to add color stop: ",w,"; tried to add: ",b.colorStops[d],"; stop: ",d,"; in: ",c])}v.fillStyle=
|
25
|
+
h;v.fillRect(0,0,K,K);e.fillStyle=b.colorStops[d-1].color;e.fillRect(0,0,a.width,a.height);t=new Image;t.onload=function(){e.drawImage(t,b.cx-b.rx,b.cy-b.ry,2*b.rx,2*b.ry);q.src=a.toDataURL()};t.src=s.toDataURL()}return q};j.Generate.ListAlpha=function(c){var f="",a;do a=c%26,f=String.fromCharCode(a+64)+f,c/=26;while(c*26>26);return f};j.Generate.ListRoman=function(c){var f=["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],a=[1E3,900,500,400,100,90,50,40,10,9,5,4,1],e="",b,h=f.length;if(c<=
|
26
|
+
0||c>=4E3)return c;for(b=0;b<h;b+=1)for(;c>=a[b];)c-=a[b],e+=f[b];return e}})();j.Parse=function(c,i){function f(){return{width:Math.max(Math.max(z.body.scrollWidth,z.documentElement.scrollWidth),Math.max(z.body.offsetWidth,z.documentElement.offsetWidth),Math.max(z.body.clientWidth,z.documentElement.clientWidth)),height:Math.max(Math.max(z.body.scrollHeight,z.documentElement.scrollHeight),Math.max(z.body.offsetHeight,z.documentElement.offsetHeight),Math.max(z.body.clientHeight,z.documentElement.clientHeight))}}
|
27
|
+
function a(a,b){var c=parseInt(y(a,b),10);return isNaN(c)?0:c}function e(a,b,c,e,d,g){g!=="transparent"&&(a.setVariable("fillStyle",g),a.fillRect(b,c,e,d),I+=1)}function b(a,b){switch(b){case "lowercase":return a.toLowerCase();case "capitalize":return a.replace(/(^|\s|:|-|\(|\))([a-z])/g,function(a,b,c){if(a.length>0)return b+c.toUpperCase()});case "uppercase":return a.toUpperCase();default:return a}}function h(a){return a.replace(/^\s*/g,"").replace(/\s*$/g,"")}function d(a,c,d){var d=d.ctx,g=y(a,
|
28
|
+
"fontFamily"),f=y(a,"fontSize"),q=y(a,"color"),o=y(a,"textDecoration"),H=y(a,"textAlign"),m=y(a,"letterSpacing"),J,C,p=y(a,"fontWeight"),k=y(a,"fontStyle"),l=y(a,"fontVariant"),A=0,r;c.nodeValue=b(c.nodeValue,y(a,"textTransform"));if(h(c.nodeValue).length>0){if(o!=="none")if(x[g+"-"+f]!==n)C=x[g+"-"+f];else{C=z.createElement("div");a=z.createElement("img");r=z.createElement("span");var s;C.style.visibility="hidden";C.style.fontFamily=g;C.style.fontSize=f;C.style.margin=0;C.style.padding=0;N.appendChild(C);
|
29
|
+
a.src="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=";a.width=1;a.height=1;a.style.margin=0;a.style.padding=0;a.style.verticalAlign="baseline";r.style.fontFamily=g;r.style.fontSize=f;r.style.margin=0;r.style.padding=0;r.appendChild(z.createTextNode("Hidden Text"));C.appendChild(r);C.appendChild(a);s=a.offsetTop-r.offsetTop+1;C.removeChild(r);C.appendChild(z.createTextNode("Hidden Text"));C.style.lineHeight="normal";a.style.verticalAlign="super";a={baseline:s,lineWidth:1,middle:a.offsetTop-
|
30
|
+
C.offsetTop+1};x[g+"-"+f]=a;N.removeChild(C);C=a}H=H.replace(["-webkit-auto"],["auto"]);H=i.letterRendering===!1&&/^(left|right|justify|auto)$/.test(H)&&/^(normal|none)$/.test(m)?c.nodeValue.split(/(\b| )/):c.nodeValue.split("");switch(parseInt(p,10)){case 401:p="bold";break;case 400:p="normal"}d.setVariable("fillStyle",q);d.setVariable("font",k+" "+l+" "+p+" "+f+" "+g);d.setVariable("textAlign","left");f=c;p=0;for(g=H.length;p<g;p+=1){k=null;if(w.rangeBounds){if(o!=="none"||h(H[p]).length!==0)k=
|
31
|
+
H[p],z.createRange?(J=z.createRange(),J.setStart(c,A),J.setEnd(c,A+k.length)):J=N.createTextRange(),J=J.getBoundingClientRect()?J.getBoundingClientRect():{}}else{if(typeof f.nodeValue!=="string")continue;l=f.splitText(H[p].length);m=f.parentNode;a=z.createElement("wrapper");r=f.cloneNode(!0);a.appendChild(f.cloneNode(!0));m.replaceChild(a,f);J=j.Util.Bounds(a);k=f.nodeValue;f=l;m.replaceChild(r,a)}if(k!==null)l=J.left,m=J.bottom,a=d,h(k).length>0&&(a.fillText(k,l,m),I+=1);switch(o){case "underline":e(d,
|
32
|
+
J.left,Math.round(J.top+C.baseline+C.lineWidth),J.width,1,q);break;case "overline":e(d,J.left,J.top,J.width,1,q);break;case "line-through":e(d,J.left,Math.ceil(J.top+C.middle+C.lineWidth),J.width,1,q)}A+=H[p].length}}}function g(a){return(a=c[a])&&a.succeeded===!0?a.img:!1}function q(a,b){var c=Math.max(a.left,b.left),d=Math.max(a.top,b.top);return{left:c,top:d,width:Math.min(a.left+a.width,b.left+b.width)-c,height:Math.min(a.top+a.height,b.top+b.height)-d}}function P(b,c,d,e){var g=d.left,f=d.top,
|
33
|
+
i=d.width,d=d.height,h,m,o,w,p,k,l,j=function(b){var c=[],d=["Top","Right","Bottom","Left"],e;for(e=0;e<4;e+=1)c.push({width:a(b,"border"+d[e]+"Width"),color:y(b,"border"+d[e]+"Color")});return c}(b);(function(a){var b=[],c=["TopLeft","TopRight","BottomRight","BottomLeft"],d;for(d=0;d<4;d+=1)b.push(y(a,"border"+c[d]+"Radius"));return b})(b);for(b=0;b<4;b+=1)if(h=j[b],l=[],h.width>0){m=g;o=f;w=i;p=d-j[2].width;switch(b){case 0:p=j[0].width;k=0;l[k++]=["line",m,o];l[k++]=["line",m+w,o];l[k++]=["line",
|
34
|
+
m+w-j[1].width,o+p];l[k++]=["line",m+j[3].width,o+p];break;case 1:m=g+i-j[1].width;w=j[1].width;k=0;l[k++]=["line",m,o+j[0].width];l[k++]=["line",m+w,o];l[k++]=["line",m+w,o+p+j[2].width];l[k++]=["line",m,o+p];break;case 2:o=o+d-j[2].width;p=j[2].width;k=0;l[k++]=["line",m+j[3].width,o];l[k++]=["line",m+w-j[2].width,o];l[k++]=["line",m+w,o+p];l[k++]=["line",m,o+p];break;case 3:w=j[3].width,k=0,l[k++]=["line",m,o],l[k++]=["line",m+w,o+j[0].width],l[k++]=["line",m+w,o+p],l[k++]=["line",m,o+p+j[2].width]}k=
|
35
|
+
{left:m,top:o,width:w,height:p};e&&(k=q(k,e));if(k.width>0&&k.height>0&&h.color!=="transparent"){c.setVariable("fillStyle",h.color);h=c.drawShape();m=l.length;for(k=0;k<m;k++)h[k===0?"moveTo":l[k][0]+"To"].apply(null,l[k].slice(1));I+=1}}return j}function O(a,b,c){var e=z.createElement("valuewrap"),g=["lineHeight","textAlign","fontFamily","color","fontSize","paddingLeft","paddingTop","width","height","border","borderLeftWidth","borderTopWidth"],f,i,h;f=0;for(i=g.length;f<i;f+=1){h=g[f];try{e.style[h]=
|
36
|
+
y(a,h)}catch(o){D("html2canvas: Parse: Exception caught in renderFormValue: "+o.message)}}e.style.borderColor="black";e.style.borderStyle="solid";e.style.display="block";e.style.position="absolute";if(/^(submit|reset|button|text|password)$/.test(a.type)||a.nodeName==="SELECT")e.style.lineHeight=y(a,"height");e.style.top=b.top+"px";e.style.left=b.left+"px";b=z.createTextNode(a.nodeName==="SELECT"?a.options[a.selectedIndex].text:a.value);e.appendChild(b);N.appendChild(e);d(a,b,c);N.removeChild(e)}function s(a,
|
37
|
+
b,c,e,d,f,g,i){var h=0,o=0;g-c>0&&(h=g-c);i-e>0&&(o=i-e);a.drawImage(b,h,o,d-h,f-o,c+h,e+o,d-h,f-o);I+=1}function v(a,b,c,e,d,f,g){var g=Math.min(b.height,g),i,h;c.left-=Math.ceil(c.left/b.width)*b.width;for(h=e+c.left;h<f+e;)i=Math.floor(h+b.width)>f+e?f+e-h:b.width,s(a,b,h,d+c.top,i,g,e,d),h=Math.floor(h+b.width)}function K(b,c){var d=j.Util.Bounds(b),o=d.left,w=d.top,x=d.width,E=d.height,H,m=y(b,"backgroundColor"),u=y(b,"position"),C,p=y(b,"opacity"),k,l;c?L={}:(L=f(),c={opacity:1});l=y(b,"zIndex");
|
38
|
+
(C=c.zIndex)?l!=="auto"&&(l={zindex:l,children:[]},C.children.push(l),C=l):C=l={zindex:0,children:[]};k={ctx:T(L.width||x,L.height||E),zIndex:C,opacity:p*c.opacity,cssPosition:u};if(c.clip)k.clip=j.Util.Extend({},c.clip);if(i.useOverflow===!0&&/(hidden|scroll|auto)/.test(y(b,"overflow"))===!0&&/(BODY)/i.test(b.nodeName)===!1)k.clip=k.clip?q(k.clip,d):d;u=C.children.push(k);l=C.children[u-1].ctx;l.setVariable("globalAlpha",k.opacity);p=P(b,l,d,!1);k.borders=p;F.test(b.nodeName)&&i.iframeDefault!==
|
39
|
+
"transparent"&&(m=i.iframeDefault==="default"?"#efefef":i.iframeDefault);x={left:o+p[3].width,top:w+p[0].width,width:x-(p[1].width+p[3].width),height:E-(p[0].width+p[2].width)};k.clip&&(x=q(x,k.clip));if(x.height>0&&x.width>0){e(l,x.left,x.top,x.width,x.height,m);var A=x,r=y(b,"backgroundImage"),n=y(b,"backgroundRepeat").split(",")[0],t,B,G;!/data:image\/.*;base64,/i.test(r)&&!/^(-webkit|-moz|linear-gradient|-o-)/.test(r)&&(r=r.split(",")[0]);if(typeof r!=="undefined"&&/^(1|none)$/.test(r)===!1)if(r=
|
40
|
+
j.Util.backgroundImage(r),m=g(r),E=j.Util.BackgroundPosition(b,A,m),m)switch(n){case "repeat-x":v(l,m,E,A.left,A.top,A.width,A.height);break;case "repeat-y":r=A.left;n=A.top;t=A.height;B=Math.min(m.width,A.width);E.top-=Math.ceil(E.top/m.height)*m.height;for(G=n+E.top;G<t+n;)A=Math.floor(G+m.height)>t+n?t+n-G:m.height,s(l,m,r+E.left,G,B,A,r,n),G=Math.floor(G+m.height);break;case "no-repeat":r=A.width-E.left;G=A.height-E.top;n=E.left;t=E.top;B=E.left+A.left;E=E.top+A.top;n<0?(n=Math.abs(n),B+=n,r=
|
41
|
+
Math.min(A.width,m.width-n)):(r=Math.min(r,m.width),n=0);t<0?(t=Math.abs(t),E+=t,G=Math.min(A.height,m.height-t)):(G=Math.min(G,m.height),t=0);G>0&&r>0&&(l.drawImage(m,n,t,r,G,B,E,r,G),I+=1);break;default:E.top-=Math.ceil(E.top/m.height)*m.height;for(r=A.top+E.top;r<A.height+A.top;)n=Math.min(m.height,A.height+A.top-r),n=Math.floor(r+m.height)>n+r?n+r-r:m.height,r<A.top?(t=A.top-r,r=A.top):t=0,v(l,m,E,A.left,r,A.width,n),t>0&&(E.top+=t),r=Math.floor(r+m.height)-t}else D("html2canvas: Error loading background:"+
|
42
|
+
r)}switch(b.nodeName){case "IMG":k=b.getAttribute("src");(H=g(k))?(k=a(b,"paddingLeft"),x=a(b,"paddingTop"),m=a(b,"paddingRight"),E=a(b,"paddingBottom"),l.drawImage(H,0,0,H.width,H.height,o+k+p[3].width,w+x+p[0].width,d.width-(p[1].width+p[3].width+k+m),d.height-(p[0].width+p[2].width+x+E)),I+=1):D("html2canvas: Error loading <img>:"+k);break;case "INPUT":/^(text|url|email|submit|button|reset)$/.test(b.type)&&b.value.length>0&&O(b,d,k);break;case "TEXTAREA":b.value.length>0&&O(b,d,k);break;case "SELECT":b.options.length>
|
43
|
+
0&&O(b,d,k);break;case "LI":d=x;o=y(b,"listStylePosition");p=y(b,"listStyleType");w=y(b,"fontWeight");if(/^(decimal|decimal-leading-zero|upper-alpha|upper-latin|upper-roman|lower-alpha|lower-greek|lower-latin|lower-roman)$/i.test(p)){l=-1;k=1;x=b.parentNode.childNodes;if(b.parentNode){for(;x[++l]!==b;)x[l].nodeType===1&&k++;l=k}else l=-1;switch(p){case "decimal":H=l;break;case "decimal-leading-zero":H=l.toString().length===1?"0"+l.toString():l.toString();break;case "upper-roman":H=j.Generate.ListRoman(l);
|
44
|
+
break;case "lower-roman":H=j.Generate.ListRoman(l).toLowerCase();break;case "lower-alpha":H=j.Generate.ListAlpha(l).toLowerCase();break;case "upper-alpha":H=j.Generate.ListAlpha(l)}H+=". ";k=H;p=z.createElement("boundelement");p.style.display="inline";l=b.style.listStyleType;b.style.listStyleType="none";p.appendChild(z.createTextNode(k));b.insertBefore(p,b.firstChild);k=j.Util.Bounds(p);b.removeChild(p);b.style.listStyleType=l;switch(w){case 401:w="bold";break;case 400:w="normal"}Q.setVariable("fillStyle",
|
45
|
+
y(b,"color"));Q.setVariable("font",y(b,"fontVariant")+" "+w+" "+y(b,"fontStyle")+" "+y(b,"fontSize")+" "+y(b,"fontFamily"));if(o==="inside")Q.setVariable("textAlign","left"),d=d.left,o=k.bottom,w=Q,h(H).length>0&&(w.fillText(H,d,o),I+=1)}break;case "CANVAS":k=a(b,"paddingLeft"),x=a(b,"paddingTop"),m=a(b,"paddingRight"),E=a(b,"paddingBottom"),l.drawImage(b,0,0,b.width,b.height,o+k+p[3].width,w+x+p[0].width,d.width-(p[1].width+p[3].width+k+m),d.height-(p[0].width+p[2].width+x+E)),I+=1}return C.children[u-
|
46
|
+
1]}function t(a,b){if(y(a,"display")!=="none"&&y(a,"visibility")!=="hidden"&&!a.hasAttribute("data-html2canvas-ignore")&&(b=K(a,b)||b,Q=b.ctx,!F.test(a.nodeName))){var c=j.Util.Children(a),e,f,g;e=0;for(g=c.length;e<g;e+=1)f=c[e],f.nodeType===1?t(f,b):f.nodeType===3&&d(a,f,b)}}u.scroll(0,0);var w={rangeBounds:!1,svgRendering:i.svgRendering&&function(){var a=new Image,b=B.createElement("canvas"),c=b.getContext===n?!1:b.getContext("2d");if(c===!1)return!1;b.width=b.height=10;a.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><foreignObject width='10' height='10'><div xmlns='http://www.w3.org/1999/xhtml' style='width:10;height:10;'>sup</div></foreignObject></svg>";
|
47
|
+
try{c.drawImage(a,0,0),b.toDataURL()}catch(d){return!1}D("html2canvas: Parse: SVG powered rendering available");return!0}()},o=i.elements===n?B.body:i.elements[0],I=0,x={},z=o.ownerDocument,F=RegExp("("+i.ignoreElements+")"),N=z.body,M,G,R,Q,L,c=c||{};if(z.createRange&&(M=z.createRange(),M.getBoundingClientRect)){G=z.createElement("boundtest");G.style.height="123px";G.style.display="block";N.appendChild(G);M.selectNode(G);M=M.getBoundingClientRect();M=M.height;if(M===123)w.rangeBounds=!0;N.removeChild(G)}var y=
|
48
|
+
j.Util.getCSS;R=K(o,null);w.svgRendering&&function(a){function b(a){var a=j.Util.Children(a),c=a.length,d,f,g,h,i;for(i=0;i<c;i+=1)if(h=a[i],h.nodeType===3)e+=h.nodeValue.replace(/\</g,"<").replace(/\>/g,">");else if(h.nodeType===1&&!/^(script|meta|title)$/.test(h.nodeName.toLowerCase())){e+="<"+h.nodeName.toLowerCase();if(h.hasAttributes()){d=h.attributes;g=d.length;for(f=0;f<g;f+=1)e+=" "+d[f].name+'="'+d[f].value+'"'}e+=">";b(h);e+="</"+h.nodeName.toLowerCase()+">"}}var c=new Image,d=f(),
|
49
|
+
e="";b(a);c.src=["data:image/svg+xml,","<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='"+d.width+"' height='"+d.height+"'>","<foreignObject width='"+d.width+"' height='"+d.height+"'>","<html xmlns='http://www.w3.org/1999/xhtml' style='margin:0;'>",e.replace(/\#/g,"%23"),"</html></foreignObject></svg>"].join("");c.onload=function(){R.svgRender=c}}(B.documentElement);G=0;o=o.children;for(M=o.length;G<M;G+=1)t(o[G],R);R.backgroundColor=y(B.documentElement,"backgroundColor");return R};j.Preload=
|
50
|
+
function(c){function i(){D("html2canvas: start: images: "+b.numLoaded+" / "+b.numTotal+" (failed: "+b.numFailed+")");!b.firstRun&&b.numLoaded>=b.numTotal&&(D("Finished loading images: # "+b.numTotal+" (failed: "+b.numFailed+")"),typeof c.complete==="function"&&c.complete(b))}function f(a,d,f){var g,h=c.proxy,j;v.href=a;a=v.href;g="html2canvas_"+q++;f.callbackname=g;h+=h.indexOf("?")>-1?"&":"?";h+="url="+encodeURIComponent(a)+"&callback="+g;j=P.createElement("script");u[g]=function(a){a.substring(0,
|
51
|
+
6)==="error:"?(f.succeeded=!1,b.numLoaded++,b.numFailed++,i()):(e(d,f),d.src=a);u[g]=n;try{delete u[g]}catch(c){}j.parentNode.removeChild(j);j=null;delete f.script;delete f.callbackname};j.setAttribute("type","text/javascript");j.setAttribute("src",h);f.script=j;u.document.body.appendChild(j)}function a(c){var e=j.Util.Children(c),f,g,h=!1;try{var q=e.length;for(f=0;f<q;f+=1)a(e[f])}catch(s){}try{h=c.nodeType}catch(t){h=!1,D("html2canvas: failed to access some element's nodeType - Exception: "+t.message)}if(h===
|
52
|
+
1||h===n){try{g=j.Util.getCSS(c,"backgroundImage")}catch(v){D("html2canvas: failed to get background-image - Exception: "+v.message)}g&&g!=="1"&&g!=="none"&&(/^(-webkit|-o|-moz|-ms|linear)-/.test(g)?(c=j.Generate.Gradient(g,j.Util.Bounds(c)),c!==n&&(b[g]={img:c,succeeded:!0},b.numTotal++,b.numLoaded++,i())):(g=j.Util.backgroundImage(g.match(/data:image\/.*;base64,/i)?g:g.split(",")[0]),d.loadImage(g)))}}function e(a,d){a.onload=function(){d.timer!==n&&u.clearTimeout(d.timer);b.numLoaded++;d.succeeded=
|
53
|
+
!0;a.onerror=a.onload=null;i()};a.onerror=function(){if(a.crossOrigin==="anonymous"&&(u.clearTimeout(d.timer),c.proxy)){var e=a.src;a=new Image;d.img=a;a.src=e;f(a.src,a,d);return}b.numLoaded++;b.numFailed++;d.succeeded=!1;a.onerror=a.onload=null;i()}}var b={numLoaded:0,numFailed:0,numTotal:0,cleanupDone:!1},h,d,g,q=0;g=c.elements[0]||B.body;var P=g.ownerDocument,O=P.images,s=O.length,v=P.createElement("a"),K=function(a){return a.crossOrigin!==n}(new Image),t;v.href=u.location.href;h=v.protocol+v.host;
|
54
|
+
d={loadImage:function(a){var d,g;if(a&&b[a]===n)d=new Image,a.match(/data:image\/.*;base64,/i)?(d.src=a.replace(/url\(['"]{0,}|['"]{0,}\)$/ig,""),g=b[a]={img:d},b.numTotal++,e(d,g)):(v.href=a,v.href=v.href,v.protocol+v.host===h||c.allowTaint===!0?(g=b[a]={img:d},b.numTotal++,e(d,g),d.src=a):K&&!c.allowTaint&&c.useCORS?(d.crossOrigin="anonymous",g=b[a]={img:d},b.numTotal++,e(d,g),d.src=a,d.customComplete=function(){if(this.img.complete)this.img.onerror();else this.timer=u.setTimeout(this.img.customComplete,
|
55
|
+
100)}.bind(g),d.customComplete()):c.proxy&&(g=b[a]={img:d},b.numTotal++,f(a,d,g)))},cleanupDOM:function(a){var d,e;if(!b.cleanupDone){a&&typeof a==="string"?D("html2canvas: Cleanup because: "+a):D("html2canvas: Cleanup after timeout: "+c.timeout+" ms.");for(e in b)if(b.hasOwnProperty(e)&&(d=b[e],typeof d==="object"&&d.callbackname&&d.succeeded===n)){u[d.callbackname]=n;try{delete u[d.callbackname]}catch(g){}d.script&&d.script.parentNode&&(d.script.setAttribute("src","about:blank"),d.script.parentNode.removeChild(d.script));
|
56
|
+
b.numLoaded++;b.numFailed++;D("html2canvas: Cleaned up failed img: '"+e+"' Steps: "+b.numLoaded+" / "+b.numTotal)}u.stop!==n?u.stop():B.execCommand!==n&&B.execCommand("Stop",!1);B.close!==n&&B.close();b.cleanupDone=!0;a&&typeof a==="string"||i()}},renderingDone:function(){t&&u.clearTimeout(t)}};c.timeout>0&&(t=u.setTimeout(d.cleanupDOM,c.timeout));D("html2canvas: Preload starts: finding background-images");b.firstRun=!0;a(g);D("html2canvas: Preload: Finding images");for(g=0;g<s;g+=1)d.loadImage(O[g].getAttribute("src"));
|
57
|
+
b.firstRun=!1;D("html2canvas: Preload: Done.");b.numTotal===b.numLoaded&&i();return d};j.Renderer=function(c,i){function f(c){var b=[],h=[],c=c.children,d,g,i,j;d=0;for(i=c.length;d<i;d+=1)g=c[d],g.children&&g.children.length>0?(b.push(g),h.push(g.zindex)):a.push(g);h.sort(function(a,b){return a-b});c=0;for(d=h.length;c<d;c+=1){g=h[c];i=0;for(j=b.length;i<=j;i+=1)if(b[i].zindex===g){g=b.splice(i,1);f(g[0]);break}}}var a=[];f(c.zIndex);if(typeof i._renderer._create!=="function")throw Error("Invalid renderer defined");
|
58
|
+
return i._renderer._create(c,i,B,a,j)};L=function(c,i){var f,a,e={logging:!1,elements:c,proxy:"http://html2canvas.appspot.com/",timeout:0,useCORS:!1,allowTaint:!1,svgRendering:!1,iframeDefault:"default",ignoreElements:"IFRAME|OBJECT|PARAM",useOverflow:!0,letterRendering:!1,flashcanvas:n,width:null,height:null,taintTest:!0,renderer:"Canvas"},e=j.Util.Extend(i,e);if(typeof e.renderer==="string"&&j.Renderer[e.renderer]!==n)e._renderer=j.Renderer[e.renderer](e);else if(typeof e.renderer==="function")e._renderer=
|
59
|
+
e.renderer(e);else throw"Unknown renderer";j.logging=e.logging;e.complete=function(b){if(!(typeof e.onpreloaded==="function"&&e.onpreloaded(b)===!1)&&(f=j.Parse(b,e),!(typeof e.onparsed==="function"&&e.onparsed(f)===!1)&&(a=j.Renderer(f,e),typeof e.onrendered==="function")))e.onrendered(a)};u.setTimeout(function(){j.Preload(e)},0);return{render:function(a,c){return j.Renderer(a,j.Util.Extend(c,e))},parse:function(a,c){return j.Parse(a,j.Util.Extend(c,e))},preload:function(a){return j.Preload(j.Util.Extend(a,
|
60
|
+
e))},log:D}};L.log=D;L.Renderer={Canvas:n};j.Renderer.Canvas=function(c){var c=c||{},i=c.canvas||B.createElement("canvas"),f=!1,a=!1,e=!1,b;if(i.getContext)D("html2canvas: Renderer: using canvas renderer"),e=!0;else if(c.flashcanvas!==n){f=!0;D("html2canvas: Renderer: canvas not available, using flashcanvas");var h=B.createElement("script");h.src=c.flashcanvas;h.onload=function(a,b){var c;if(a.onload===n)a.onreadystatechange!==n?(c=function(){a.readyState!=="loaded"&&a.readyState!=="complete"?u.setTimeout(c,
|
61
|
+
250):b()},u.setTimeout(c,250)):D("html2canvas: Renderer: Can't track when flashcanvas is loaded");else return b}(h,function(){typeof u.FlashCanvas!=="undefined"&&(D("html2canvas: Renderer: Flashcanvas initialized"),u.FlashCanvas.initElement(i),e=!0,a!==!1&&b._create.apply(null,a))});B.body.appendChild(h)}return b={_create:function(b,c,h,j,u){if(!e)return a=arguments,i;var s=i.getContext("2d"),v,K,t,w,o,I,x=B.createElement("canvas");o=x.getContext!==n;var z,F,x=o?x.getContext("2d"):{};I=[];i.width=
|
62
|
+
i.style.width=!f?c.width||b.ctx.width:Math.min(2880,c.width||b.ctx.width);i.height=i.style.height=!f?c.height||b.ctx.height:Math.min(2880,c.height||b.ctx.height);v=s.fillStyle;s.fillStyle=b.backgroundColor;s.fillRect(0,0,i.width,i.height);s.fillStyle=v;if(c.svgRendering&&b.svgRender!==n)s.drawImage(b.svgRender,0,0);else{K=0;for(t=j.length;K<t;K+=1){v=j.splice(0,1)[0];v.canvasPosition=v.canvasPosition||{};s.textBaseline="bottom";v.clip&&(s.save(),s.beginPath(),s.rect(v.clip.left,v.clip.top,v.clip.width,
|
63
|
+
v.clip.height),s.clip());if(v.ctx.storage){w=0;for(z=v.ctx.storage.length;w<z;w+=1)switch(F=v.ctx.storage[w],F.type){case "variable":s[F.name]=F.arguments;break;case "function":if(F.name==="fillRect")(!f||F.arguments[0]+F.arguments[2]<2880&&F.arguments[1]+F.arguments[3]<2880)&&s.fillRect.apply(s,F.arguments);else if(F.name==="drawShape")(function(a){var b,c=a.length;s.beginPath();for(b=0;b<c;b++)s[a[b].name].apply(s,a[b].arguments);s.closePath();s.fill()})(F.arguments);else if(F.name==="fillText")(!f||
|
64
|
+
F.arguments[1]<2880&&F.arguments[2]<2880)&&s.fillText.apply(s,F.arguments);else if(F.name==="drawImage"&&F.arguments[8]>0&&F.arguments[7]){if(o&&c.taintTest&&I.indexOf(F.arguments[0].src)===-1){x.drawImage(F.arguments[0],0,0);try{x.getImageData(0,0,1,1)}catch(L){x=h.createElement("canvas");x=x.getContext("2d");continue}I.push(F.arguments[0].src)}s.drawImage.apply(s,F.arguments)}}}v.clip&&s.restore()}}D("html2canvas: Renderer: Canvas renderer done - returning canvas obj");t=c.elements.length;return t===
|
65
|
+
1&&typeof c.elements[0]==="object"&&c.elements[0].nodeName!=="BODY"&&f===!1?(I=u.Util.Bounds(c.elements[0]),o=h.createElement("canvas"),o.width=I.width,o.height=I.height,s=o.getContext("2d"),s.drawImage(i,I.left,I.top,I.width,I.height,0,0,I.width,I.height),i=null,o):i}}};j.Renderer.SVG=function(){var c=B.createElementNS("http://www.w3.org/2000/svg","svg"),i=B.createElementNS("http://www.w3.org/2000/svg","defs"),f,a,e,b,h,d,g,j={},n,u,s=0;return{_create:function(v,B,t,w){c.setAttribute("version","1.1");
|
66
|
+
c.setAttribute("baseProfile","full");c.setAttribute("viewBox","0 0 "+Math.max(v.ctx.width,B.width)+" "+Math.max(v.ctx.height,B.height));c.setAttribute("width",Math.max(v.ctx.width,B.width)+"px");c.setAttribute("height",Math.max(v.ctx.height,B.height)+"px");c.setAttribute("preserveAspectRatio","none");c.appendChild(i);f=0;for(e=w.length;f<e;f+=1)if(h=w.splice(0,1)[0],h.canvasPosition=h.canvasPosition||{},h.ctx.storage){a=0;for(b=h.ctx.storage.length;a<b;a+=1)switch(d=h.ctx.storage[a],d.type){case "variable":j[d.name]=
|
67
|
+
d.arguments;break;case "function":d.name==="fillRect"?(g=t.createElementNS("http://www.w3.org/2000/svg","rect"),g.setAttribute("x",d.arguments[0]),g.setAttribute("y",d.arguments[1]),g.setAttribute("width",d.arguments[2]),g.setAttribute("height",d.arguments[3]),g.setAttribute("fill",j.fillStyle),c.appendChild(g)):d.name==="fillText"?(g=t.createElementNS("http://www.w3.org/2000/svg","text"),u=j.font.split(" "),g.style.fontVariant=u.splice(0,1)[0],g.style.fontWeight=u.splice(0,1)[0],g.style.fontStyle=
|
68
|
+
u.splice(0,1)[0],g.style.fontSize=u.splice(0,1)[0],g.setAttribute("x",d.arguments[1]),g.setAttribute("y",d.arguments[2]-(parseInt(g.style.fontSize,10)+3)),g.setAttribute("fill",j.fillStyle),g.style.dominantBaseline="text-before-edge",g.style.fontFamily=u.join(" "),n=t.createTextNode(d.arguments[0]),g.appendChild(n),c.appendChild(g)):d.name==="drawImage"&&d.arguments[8]>0&&d.arguments[7]&&(g=t.createElementNS("http://www.w3.org/2000/svg","clipPath"),g.setAttribute("id","clipId"+s),n=t.createElementNS("http://www.w3.org/2000/svg",
|
69
|
+
"rect"),n.setAttribute("x",d.arguments[5]),n.setAttribute("y",d.arguments[6]),n.setAttribute("width",d.arguments[3]),n.setAttribute("height",d.arguments[4]),g.appendChild(n),i.appendChild(g),g=t.createElementNS("http://www.w3.org/2000/svg","image"),g.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d.arguments[0].src),g.setAttribute("width",d.arguments[7]),g.setAttribute("height",d.arguments[8]),g.setAttribute("x",d.arguments[5]),g.setAttribute("y",d.arguments[6]),g.setAttribute("clip-path",
|
70
|
+
"url(#clipId"+s+")"),g.setAttribute("preserveAspectRatio","none"),c.appendChild(g),s+=1)}}D("html2canvas: Renderer: SVG Renderer done - returning SVG DOM obj");return c}}};u.html2canvas=L})(window,document);
|
@@ -0,0 +1,738 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v2.0.4
|
3
|
+
*
|
4
|
+
* Copyright 2012 Twitter, Inc
|
5
|
+
* Licensed under the Apache License v2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9
|
+
*/
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
.feedback-body p a {
|
15
|
+
color: #0088cc;
|
16
|
+
text-decoration: none;
|
17
|
+
}
|
18
|
+
.feedback-body p a:hover {
|
19
|
+
color: #005580;
|
20
|
+
text-decoration: underline;
|
21
|
+
}
|
22
|
+
|
23
|
+
.modal h3 {
|
24
|
+
line-height: 27px;
|
25
|
+
font-size: 18px;
|
26
|
+
margin: 0;
|
27
|
+
font-weight: bold;
|
28
|
+
color: #333;
|
29
|
+
text-rendering: optimizelegibility;
|
30
|
+
}
|
31
|
+
|
32
|
+
.modal {
|
33
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
34
|
+
font-size: 13px;
|
35
|
+
line-height: 18px;
|
36
|
+
color: #333;
|
37
|
+
position: fixed;
|
38
|
+
top: 50%;
|
39
|
+
left: 50%;
|
40
|
+
z-index: 2050;
|
41
|
+
max-height: 500px;
|
42
|
+
overflow: auto;
|
43
|
+
width: 560px;
|
44
|
+
margin: -250px 0 0 -280px;
|
45
|
+
background-color: #ffffff;
|
46
|
+
border: 1px solid #999;
|
47
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
48
|
+
*border: 1px solid #999;
|
49
|
+
/* IE6-7 */
|
50
|
+
|
51
|
+
-webkit-border-radius: 6px;
|
52
|
+
-moz-border-radius: 6px;
|
53
|
+
border-radius: 6px;
|
54
|
+
-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
55
|
+
-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
56
|
+
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
57
|
+
-webkit-background-clip: padding-box;
|
58
|
+
-moz-background-clip: padding-box;
|
59
|
+
background-clip: padding-box;
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
.modal .close {
|
65
|
+
float: right;
|
66
|
+
font-size: 20px;
|
67
|
+
font-weight: bold;
|
68
|
+
line-height: 18px;
|
69
|
+
color: #000000;
|
70
|
+
text-shadow: 0 1px 0 #ffffff;
|
71
|
+
opacity: 0.2;
|
72
|
+
filter: alpha(opacity=20);
|
73
|
+
}
|
74
|
+
.modal .close:hover {
|
75
|
+
color: #000000;
|
76
|
+
text-decoration: none;
|
77
|
+
opacity: 0.4;
|
78
|
+
filter: alpha(opacity=40);
|
79
|
+
cursor: pointer;
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
.btn {
|
84
|
+
display: inline-block;
|
85
|
+
padding: 4px 10px 4px;
|
86
|
+
margin-bottom: 0;
|
87
|
+
font-size: 13px;
|
88
|
+
line-height: 18px;
|
89
|
+
color: #333333;
|
90
|
+
text-align: center;
|
91
|
+
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
92
|
+
vertical-align: middle;
|
93
|
+
background-color: #f5f5f5;
|
94
|
+
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
95
|
+
background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
|
96
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
97
|
+
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
|
98
|
+
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
99
|
+
background-image: linear-gradient(top, #ffffff, #e6e6e6);
|
100
|
+
background-repeat: repeat-x;
|
101
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
|
102
|
+
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
|
103
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
104
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
105
|
+
border: 1px solid #ccc;
|
106
|
+
border-bottom-color: #bbb;
|
107
|
+
-webkit-border-radius: 4px;
|
108
|
+
-moz-border-radius: 4px;
|
109
|
+
border-radius: 4px;
|
110
|
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
111
|
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
112
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
113
|
+
cursor: pointer;
|
114
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
115
|
+
*margin-left: .3em;
|
116
|
+
}
|
117
|
+
.btn:hover,
|
118
|
+
.btn:active,
|
119
|
+
.btn.active,
|
120
|
+
.btn.disabled,
|
121
|
+
.btn[disabled] {
|
122
|
+
background-color: #e6e6e6;
|
123
|
+
}
|
124
|
+
.btn:active, .btn.active {
|
125
|
+
background-color: #cccccc \9;
|
126
|
+
}
|
127
|
+
.btn:first-child {
|
128
|
+
*margin-left: 0;
|
129
|
+
}
|
130
|
+
.btn:hover {
|
131
|
+
color: #333333;
|
132
|
+
text-decoration: none;
|
133
|
+
background-color: #e6e6e6;
|
134
|
+
background-position: 0 -15px;
|
135
|
+
-webkit-transition: background-position 0.1s linear;
|
136
|
+
-moz-transition: background-position 0.1s linear;
|
137
|
+
-ms-transition: background-position 0.1s linear;
|
138
|
+
-o-transition: background-position 0.1s linear;
|
139
|
+
transition: background-position 0.1s linear;
|
140
|
+
}
|
141
|
+
.btn:focus {
|
142
|
+
outline: thin dotted #333;
|
143
|
+
outline: 5px auto -webkit-focus-ring-color;
|
144
|
+
outline-offset: -2px;
|
145
|
+
}
|
146
|
+
.btn.active, .btn:active {
|
147
|
+
background-image: none;
|
148
|
+
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
149
|
+
-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
150
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
151
|
+
background-color: #e6e6e6;
|
152
|
+
background-color: #d9d9d9 \9;
|
153
|
+
outline: 0;
|
154
|
+
}
|
155
|
+
.btn.disabled, .btn[disabled] {
|
156
|
+
cursor: default;
|
157
|
+
background-image: none;
|
158
|
+
background-color: #e6e6e6;
|
159
|
+
opacity: 0.65;
|
160
|
+
filter: alpha(opacity=65);
|
161
|
+
-webkit-box-shadow: none;
|
162
|
+
-moz-box-shadow: none;
|
163
|
+
box-shadow: none;
|
164
|
+
}
|
165
|
+
.btn-large {
|
166
|
+
padding: 9px 14px;
|
167
|
+
font-size: 15px;
|
168
|
+
line-height: normal;
|
169
|
+
-webkit-border-radius: 5px;
|
170
|
+
-moz-border-radius: 5px;
|
171
|
+
border-radius: 5px;
|
172
|
+
}
|
173
|
+
.btn-large [class^="icon-"] {
|
174
|
+
margin-top: 1px;
|
175
|
+
}
|
176
|
+
.btn-small {
|
177
|
+
padding: 5px 9px;
|
178
|
+
font-size: 11px;
|
179
|
+
line-height: 16px;
|
180
|
+
}
|
181
|
+
.btn-small [class^="icon-"] {
|
182
|
+
margin-top: -1px;
|
183
|
+
}
|
184
|
+
.btn-mini {
|
185
|
+
padding: 2px 6px;
|
186
|
+
font-size: 11px;
|
187
|
+
line-height: 14px;
|
188
|
+
}
|
189
|
+
.btn-primary,
|
190
|
+
.btn-primary:hover,
|
191
|
+
.btn-warning,
|
192
|
+
.btn-warning:hover,
|
193
|
+
.btn-danger,
|
194
|
+
.btn-danger:hover,
|
195
|
+
.btn-success,
|
196
|
+
.btn-success:hover,
|
197
|
+
.btn-info,
|
198
|
+
.btn-info:hover,
|
199
|
+
.btn-inverse,
|
200
|
+
.btn-inverse:hover {
|
201
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
202
|
+
color: #ffffff;
|
203
|
+
}
|
204
|
+
.btn-primary.active,
|
205
|
+
.btn-warning.active,
|
206
|
+
.btn-danger.active,
|
207
|
+
.btn-success.active,
|
208
|
+
.btn-info.active,
|
209
|
+
.btn-dark.active {
|
210
|
+
color: rgba(255, 255, 255, 0.75);
|
211
|
+
}
|
212
|
+
.btn-primary {
|
213
|
+
background-color: #006dcc;
|
214
|
+
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
|
215
|
+
background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
|
216
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
|
217
|
+
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
|
218
|
+
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
|
219
|
+
background-image: linear-gradient(top, #0088cc, #0044cc);
|
220
|
+
background-repeat: repeat-x;
|
221
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
|
222
|
+
border-color: #0044cc #0044cc #002a80;
|
223
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
224
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
225
|
+
}
|
226
|
+
.btn-primary:hover,
|
227
|
+
.btn-primary:active,
|
228
|
+
.btn-primary.active,
|
229
|
+
.btn-primary.disabled,
|
230
|
+
.btn-primary[disabled] {
|
231
|
+
background-color: #0044cc;
|
232
|
+
}
|
233
|
+
.btn-primary:active, .btn-primary.active {
|
234
|
+
background-color: #003399 \9;
|
235
|
+
}
|
236
|
+
.btn-warning {
|
237
|
+
background-color: #faa732;
|
238
|
+
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
|
239
|
+
background-image: -ms-linear-gradient(top, #fbb450, #f89406);
|
240
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
|
241
|
+
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
|
242
|
+
background-image: -o-linear-gradient(top, #fbb450, #f89406);
|
243
|
+
background-image: linear-gradient(top, #fbb450, #f89406);
|
244
|
+
background-repeat: repeat-x;
|
245
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);
|
246
|
+
border-color: #f89406 #f89406 #ad6704;
|
247
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
248
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
249
|
+
}
|
250
|
+
.btn-warning:hover,
|
251
|
+
.btn-warning:active,
|
252
|
+
.btn-warning.active,
|
253
|
+
.btn-warning.disabled,
|
254
|
+
.btn-warning[disabled] {
|
255
|
+
background-color: #f89406;
|
256
|
+
}
|
257
|
+
.btn-warning:active, .btn-warning.active {
|
258
|
+
background-color: #c67605 \9;
|
259
|
+
}
|
260
|
+
.btn-danger {
|
261
|
+
background-color: #da4f49;
|
262
|
+
background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
|
263
|
+
background-image: -ms-linear-gradient(top, #ee5f5b, #bd362f);
|
264
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
|
265
|
+
background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
|
266
|
+
background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
|
267
|
+
background-image: linear-gradient(top, #ee5f5b, #bd362f);
|
268
|
+
background-repeat: repeat-x;
|
269
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);
|
270
|
+
border-color: #bd362f #bd362f #802420;
|
271
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
272
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
273
|
+
}
|
274
|
+
.btn-danger:hover,
|
275
|
+
.btn-danger:active,
|
276
|
+
.btn-danger.active,
|
277
|
+
.btn-danger.disabled,
|
278
|
+
.btn-danger[disabled] {
|
279
|
+
background-color: #bd362f;
|
280
|
+
}
|
281
|
+
.btn-danger:active, .btn-danger.active {
|
282
|
+
background-color: #942a25 \9;
|
283
|
+
}
|
284
|
+
.btn-success {
|
285
|
+
background-color: #5bb75b;
|
286
|
+
background-image: -moz-linear-gradient(top, #62c462, #51a351);
|
287
|
+
background-image: -ms-linear-gradient(top, #62c462, #51a351);
|
288
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
|
289
|
+
background-image: -webkit-linear-gradient(top, #62c462, #51a351);
|
290
|
+
background-image: -o-linear-gradient(top, #62c462, #51a351);
|
291
|
+
background-image: linear-gradient(top, #62c462, #51a351);
|
292
|
+
background-repeat: repeat-x;
|
293
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);
|
294
|
+
border-color: #51a351 #51a351 #387038;
|
295
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
296
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
297
|
+
}
|
298
|
+
.btn-success:hover,
|
299
|
+
.btn-success:active,
|
300
|
+
.btn-success.active,
|
301
|
+
.btn-success.disabled,
|
302
|
+
.btn-success[disabled] {
|
303
|
+
background-color: #51a351;
|
304
|
+
}
|
305
|
+
.btn-success:active, .btn-success.active {
|
306
|
+
background-color: #408140 \9;
|
307
|
+
}
|
308
|
+
.btn-info {
|
309
|
+
background-color: #49afcd;
|
310
|
+
background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
|
311
|
+
background-image: -ms-linear-gradient(top, #5bc0de, #2f96b4);
|
312
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
|
313
|
+
background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
|
314
|
+
background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
|
315
|
+
background-image: linear-gradient(top, #5bc0de, #2f96b4);
|
316
|
+
background-repeat: repeat-x;
|
317
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);
|
318
|
+
border-color: #2f96b4 #2f96b4 #1f6377;
|
319
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
320
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
321
|
+
}
|
322
|
+
.btn-info:hover,
|
323
|
+
.btn-info:active,
|
324
|
+
.btn-info.active,
|
325
|
+
.btn-info.disabled,
|
326
|
+
.btn-info[disabled] {
|
327
|
+
background-color: #2f96b4;
|
328
|
+
}
|
329
|
+
.btn-info:active, .btn-info.active {
|
330
|
+
background-color: #24748c \9;
|
331
|
+
}
|
332
|
+
.btn-inverse {
|
333
|
+
background-color: #393939;
|
334
|
+
background-image: -moz-linear-gradient(top, #454545, #262626);
|
335
|
+
background-image: -ms-linear-gradient(top, #454545, #262626);
|
336
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#454545), to(#262626));
|
337
|
+
background-image: -webkit-linear-gradient(top, #454545, #262626);
|
338
|
+
background-image: -o-linear-gradient(top, #454545, #262626);
|
339
|
+
background-image: linear-gradient(top, #454545, #262626);
|
340
|
+
background-repeat: repeat-x;
|
341
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#454545', endColorstr='#262626', GradientType=0);
|
342
|
+
border-color: #262626 #262626 #000000;
|
343
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
344
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
345
|
+
}
|
346
|
+
.btn-inverse:hover,
|
347
|
+
.btn-inverse:active,
|
348
|
+
.btn-inverse.active,
|
349
|
+
.btn-inverse.disabled,
|
350
|
+
.btn-inverse[disabled] {
|
351
|
+
background-color: #262626;
|
352
|
+
}
|
353
|
+
.btn-inverse:active, .btn-inverse.active {
|
354
|
+
background-color: #0c0c0c \9;
|
355
|
+
}
|
356
|
+
button.btn, input[type="submit"].btn {
|
357
|
+
*padding-top: 2px;
|
358
|
+
*padding-bottom: 2px;
|
359
|
+
}
|
360
|
+
button.btn::-moz-focus-inner, input[type="submit"].btn::-moz-focus-inner {
|
361
|
+
padding: 0;
|
362
|
+
border: 0;
|
363
|
+
}
|
364
|
+
button.btn.large, input[type="submit"].btn.large {
|
365
|
+
*padding-top: 7px;
|
366
|
+
*padding-bottom: 7px;
|
367
|
+
}
|
368
|
+
button.btn.small, input[type="submit"].btn.small {
|
369
|
+
*padding-top: 3px;
|
370
|
+
*padding-bottom: 3px;
|
371
|
+
}
|
372
|
+
.btn-group {
|
373
|
+
position: relative;
|
374
|
+
*zoom: 1;
|
375
|
+
*margin-left: .3em;
|
376
|
+
}
|
377
|
+
.btn-group:before, .btn-group:after {
|
378
|
+
display: table;
|
379
|
+
content: "";
|
380
|
+
}
|
381
|
+
.btn-group:after {
|
382
|
+
clear: both;
|
383
|
+
}
|
384
|
+
.btn-group:first-child {
|
385
|
+
*margin-left: 0;
|
386
|
+
}
|
387
|
+
.btn-group + .btn-group {
|
388
|
+
margin-left: 5px;
|
389
|
+
}
|
390
|
+
.btn-toolbar {
|
391
|
+
margin-top: 9px;
|
392
|
+
margin-bottom: 9px;
|
393
|
+
}
|
394
|
+
.btn-toolbar .btn-group {
|
395
|
+
display: inline-block;
|
396
|
+
*display: inline;
|
397
|
+
/* IE7 inline-block hack */
|
398
|
+
|
399
|
+
*zoom: 1;
|
400
|
+
}
|
401
|
+
.btn-group .btn {
|
402
|
+
position: relative;
|
403
|
+
float: left;
|
404
|
+
margin-left: -1px;
|
405
|
+
-webkit-border-radius: 0;
|
406
|
+
-moz-border-radius: 0;
|
407
|
+
border-radius: 0;
|
408
|
+
}
|
409
|
+
.btn-group .btn:first-child {
|
410
|
+
margin-left: 0;
|
411
|
+
-webkit-border-top-left-radius: 4px;
|
412
|
+
-moz-border-radius-topleft: 4px;
|
413
|
+
border-top-left-radius: 4px;
|
414
|
+
-webkit-border-bottom-left-radius: 4px;
|
415
|
+
-moz-border-radius-bottomleft: 4px;
|
416
|
+
border-bottom-left-radius: 4px;
|
417
|
+
}
|
418
|
+
.btn-group .btn:last-child, .btn-group .dropdown-toggle {
|
419
|
+
-webkit-border-top-right-radius: 4px;
|
420
|
+
-moz-border-radius-topright: 4px;
|
421
|
+
border-top-right-radius: 4px;
|
422
|
+
-webkit-border-bottom-right-radius: 4px;
|
423
|
+
-moz-border-radius-bottomright: 4px;
|
424
|
+
border-bottom-right-radius: 4px;
|
425
|
+
}
|
426
|
+
.btn-group .btn.large:first-child {
|
427
|
+
margin-left: 0;
|
428
|
+
-webkit-border-top-left-radius: 6px;
|
429
|
+
-moz-border-radius-topleft: 6px;
|
430
|
+
border-top-left-radius: 6px;
|
431
|
+
-webkit-border-bottom-left-radius: 6px;
|
432
|
+
-moz-border-radius-bottomleft: 6px;
|
433
|
+
border-bottom-left-radius: 6px;
|
434
|
+
}
|
435
|
+
.btn-group .btn.large:last-child, .btn-group .large.dropdown-toggle {
|
436
|
+
-webkit-border-top-right-radius: 6px;
|
437
|
+
-moz-border-radius-topright: 6px;
|
438
|
+
border-top-right-radius: 6px;
|
439
|
+
-webkit-border-bottom-right-radius: 6px;
|
440
|
+
-moz-border-radius-bottomright: 6px;
|
441
|
+
border-bottom-right-radius: 6px;
|
442
|
+
}
|
443
|
+
.btn-group .btn:hover,
|
444
|
+
.btn-group .btn:focus,
|
445
|
+
.btn-group .btn:active,
|
446
|
+
.btn-group .btn.active {
|
447
|
+
z-index: 2;
|
448
|
+
}
|
449
|
+
.btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle {
|
450
|
+
outline: 0;
|
451
|
+
}
|
452
|
+
.btn-group .dropdown-toggle {
|
453
|
+
padding-left: 8px;
|
454
|
+
padding-right: 8px;
|
455
|
+
-webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
456
|
+
-moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
457
|
+
box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
458
|
+
*padding-top: 5px;
|
459
|
+
*padding-bottom: 5px;
|
460
|
+
}
|
461
|
+
.btn-group.open {
|
462
|
+
*z-index: 1000;
|
463
|
+
}
|
464
|
+
.btn-group.open .dropdown-menu {
|
465
|
+
display: block;
|
466
|
+
margin-top: 1px;
|
467
|
+
-webkit-border-radius: 5px;
|
468
|
+
-moz-border-radius: 5px;
|
469
|
+
border-radius: 5px;
|
470
|
+
}
|
471
|
+
.btn-group.open .dropdown-toggle {
|
472
|
+
background-image: none;
|
473
|
+
-webkit-box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
474
|
+
-moz-box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
475
|
+
box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
476
|
+
}
|
477
|
+
.btn .caret {
|
478
|
+
margin-top: 7px;
|
479
|
+
margin-left: 0;
|
480
|
+
}
|
481
|
+
.btn:hover .caret, .open.btn-group .caret {
|
482
|
+
opacity: 1;
|
483
|
+
filter: alpha(opacity=100);
|
484
|
+
}
|
485
|
+
.btn-primary .caret,
|
486
|
+
.btn-danger .caret,
|
487
|
+
.btn-info .caret,
|
488
|
+
.btn-success .caret,
|
489
|
+
.btn-inverse .caret {
|
490
|
+
border-top-color: #ffffff;
|
491
|
+
opacity: 0.75;
|
492
|
+
filter: alpha(opacity=75);
|
493
|
+
}
|
494
|
+
.btn-small .caret {
|
495
|
+
margin-top: 4px;
|
496
|
+
}
|
497
|
+
|
498
|
+
.bottom-right {
|
499
|
+
position:fixed;
|
500
|
+
bottom:5px;
|
501
|
+
right:5px;
|
502
|
+
}
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
.feedback-header {
|
507
|
+
padding: 9px 15px;
|
508
|
+
border-bottom: 1px solid #eee;
|
509
|
+
}
|
510
|
+
.feedback-header .close {
|
511
|
+
margin-top: 2px;
|
512
|
+
}
|
513
|
+
.feedback-body {
|
514
|
+
padding: 15px;
|
515
|
+
}
|
516
|
+
.feedback-body .modal-form {
|
517
|
+
margin-bottom: 0;
|
518
|
+
}
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
.feedback-body textarea {
|
523
|
+
margin: 0;
|
524
|
+
font-size: 100%;
|
525
|
+
vertical-align: middle;
|
526
|
+
overflow: auto;
|
527
|
+
vertical-align: top;
|
528
|
+
font-size: 13px;
|
529
|
+
font-weight: normal;
|
530
|
+
line-height: 18px;
|
531
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
532
|
+
|
533
|
+
display: inline-block;
|
534
|
+
width: 520px;
|
535
|
+
height: 100px;
|
536
|
+
padding: 4px;
|
537
|
+
margin-bottom: 9px;
|
538
|
+
font-size: 13px;
|
539
|
+
line-height: 18px;
|
540
|
+
color: #555555;
|
541
|
+
border: 1px solid #ccc;
|
542
|
+
-webkit-border-radius: 3px;
|
543
|
+
-moz-border-radius: 3px;
|
544
|
+
border-radius: 3px;
|
545
|
+
|
546
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
547
|
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
548
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
549
|
+
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
|
550
|
+
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
|
551
|
+
-ms-transition: border linear 0.2s, box-shadow linear 0.2s;
|
552
|
+
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
|
553
|
+
transition: border linear 0.2s, box-shadow linear 0.2s;
|
554
|
+
}
|
555
|
+
|
556
|
+
.feedback-body textarea:focus {
|
557
|
+
border-color: rgba(82, 168, 236, 0.8);
|
558
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
|
559
|
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
|
560
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
|
561
|
+
outline: 0;
|
562
|
+
outline: thin dotted \9;
|
563
|
+
/* IE6-9 */
|
564
|
+
|
565
|
+
}
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
.feedback-footer {
|
570
|
+
padding: 5px 14px 15px 15px;
|
571
|
+
line-height:20px;
|
572
|
+
height:20px;
|
573
|
+
margin-bottom: 0;
|
574
|
+
background-color: #f5f5f5;
|
575
|
+
border-top: 1px solid #ddd;
|
576
|
+
-webkit-border-radius: 0 0 6px 6px;
|
577
|
+
-moz-border-radius: 0 0 6px 6px;
|
578
|
+
border-radius: 0 0 6px 6px;
|
579
|
+
-webkit-box-shadow: inset 0 1px 0 #ffffff;
|
580
|
+
-moz-box-shadow: inset 0 1px 0 #ffffff;
|
581
|
+
box-shadow: inset 0 1px 0 #ffffff;
|
582
|
+
*zoom: 1;
|
583
|
+
}
|
584
|
+
.feedback-footer:before, .modal-footer:after {
|
585
|
+
display: table;
|
586
|
+
content: "";
|
587
|
+
}
|
588
|
+
.feedback-footer:after {
|
589
|
+
clear: both;
|
590
|
+
}
|
591
|
+
.feedback-footer .btn {
|
592
|
+
float: right;
|
593
|
+
margin-left: 5px;
|
594
|
+
margin-bottom: 0;
|
595
|
+
}
|
596
|
+
|
597
|
+
|
598
|
+
.feedback-glass {
|
599
|
+
position:fixed;
|
600
|
+
z-index:2000;
|
601
|
+
top:0;
|
602
|
+
left:0;
|
603
|
+
width: 100%;
|
604
|
+
height:100%;
|
605
|
+
background: #777;
|
606
|
+
opacity: 0.5;
|
607
|
+
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
608
|
+
filter: alpha(opacity=50);
|
609
|
+
}
|
610
|
+
|
611
|
+
.feedback-canvas {
|
612
|
+
position: absolute;
|
613
|
+
top: 0;
|
614
|
+
left: 0;
|
615
|
+
pointer-events: none;
|
616
|
+
z-index:1999;
|
617
|
+
}
|
618
|
+
|
619
|
+
|
620
|
+
#feedback-blackout-element {
|
621
|
+
background: #000;
|
622
|
+
opacity: 0.8;
|
623
|
+
position:absolute;
|
624
|
+
|
625
|
+
}
|
626
|
+
|
627
|
+
|
628
|
+
.feedback-highlight-element, .feedback-highlighted {
|
629
|
+
position:absolute;
|
630
|
+
|
631
|
+
-webkit-border-radius: 4px;
|
632
|
+
border-radius: 4px;
|
633
|
+
|
634
|
+
z-index: 2000;
|
635
|
+
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
|
636
|
+
|
637
|
+
-webkit-box-shadow: 0px 0px 8px 0px #000;
|
638
|
+
box-shadow: 0px 0px 8px 0px #000;
|
639
|
+
|
640
|
+
}
|
641
|
+
|
642
|
+
.feedback-highlight-element {
|
643
|
+
pointer-events:none;
|
644
|
+
}
|
645
|
+
|
646
|
+
#feedback-highlight-close {
|
647
|
+
background: #ccc;
|
648
|
+
border:1px solid black;
|
649
|
+
text-align:center;
|
650
|
+
line-height:20px;
|
651
|
+
font-size:20px;
|
652
|
+
font-weight:bold;
|
653
|
+
width:20px;
|
654
|
+
height:20px;
|
655
|
+
position:absolute;
|
656
|
+
cursor:pointer;
|
657
|
+
margin-left:-12px;
|
658
|
+
margin-top:-12px;
|
659
|
+
|
660
|
+
z-index:2001;
|
661
|
+
|
662
|
+
-webkit-border-radius: 10px;
|
663
|
+
border-radius: 10px;
|
664
|
+
|
665
|
+
|
666
|
+
-webkit-box-shadow: 0px 0px 4px 0px #615e5e;
|
667
|
+
box-shadow: 0px 0px 4px 0px #615e5e;
|
668
|
+
|
669
|
+
background-color: #c5c5c5;
|
670
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#c5c5c5), to(#999999));
|
671
|
+
background-image: -webkit-linear-gradient(top, #c5c5c5, #999999);
|
672
|
+
background-image: -moz-linear-gradient(top, #c5c5c5, #999999);
|
673
|
+
background-image: -o-linear-gradient(top, #c5c5c5, #999999);
|
674
|
+
background-image: linear-gradient(to bottom, #c5c5c5, #999999);
|
675
|
+
|
676
|
+
|
677
|
+
}
|
678
|
+
|
679
|
+
.feedback-blackedout {
|
680
|
+
background: #000;
|
681
|
+
position:absolute;
|
682
|
+
z-index: 2000;
|
683
|
+
}
|
684
|
+
|
685
|
+
#feedback-highlight-container {
|
686
|
+
position:absolute;
|
687
|
+
top:0;
|
688
|
+
left:0;
|
689
|
+
pointer-events:none;
|
690
|
+
z-index:2010;
|
691
|
+
}
|
692
|
+
|
693
|
+
.feedback-animate-toside {
|
694
|
+
|
695
|
+
-webkit-transition: all 2s ease 0s;
|
696
|
+
-moz-transition: all 2s ease 0s;
|
697
|
+
-ms-transition: all 2s ease 0s;
|
698
|
+
-o-transition: all 2s ease 0s;
|
699
|
+
|
700
|
+
top: 100%;
|
701
|
+
left:100%;
|
702
|
+
width: 300px;
|
703
|
+
margin-left:-320px;
|
704
|
+
margin-top: -200px;
|
705
|
+
|
706
|
+
}
|
707
|
+
|
708
|
+
.feedback-animate-review {
|
709
|
+
-webkit-transition: all 2s ease 0s;
|
710
|
+
-moz-transition: all 2s ease 0s;
|
711
|
+
-ms-transition: all 2s ease 0s;
|
712
|
+
-o-transition: all 2s ease 0s;
|
713
|
+
|
714
|
+
top: 50%;
|
715
|
+
left:50%;
|
716
|
+
width: 600px;
|
717
|
+
|
718
|
+
margin-left:-300px;
|
719
|
+
margin-top: -200px;
|
720
|
+
}
|
721
|
+
|
722
|
+
.feedback-canvas-complete {
|
723
|
+
|
724
|
+
-webkit-filter:blur(5px);
|
725
|
+
}
|
726
|
+
|
727
|
+
.feedback-body canvas {
|
728
|
+
-webkit-border-radius: 4px;
|
729
|
+
border-radius: 4px;
|
730
|
+
border:1px solid #636363;
|
731
|
+
-webkit-box-shadow: 0px 0px 12px 0px #615e5e;
|
732
|
+
box-shadow: 0px 0px 12px 0px #615e5e;
|
733
|
+
position:absolute;
|
734
|
+
}
|
735
|
+
|
736
|
+
.feedback-browser {
|
737
|
+
margin-left:330px;
|
738
|
+
}
|