forked from klokan/uservoice-feedback-iframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (78 loc) · 16.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<title>Uservoice</title>
<script type="text/javascript" charset="utf-8">
var g=true,i=null,j=false,k,l=this;function aa(){}
function n(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function o(a){return n(a)=="array"}function p(a){var b=n(a);return b=="array"||b=="object"&&typeof a.length=="number"}function q(a){return typeof a=="string"}function ba(a){a=n(a);return a=="object"||a=="array"||a=="function"}Math.floor(Math.random()*2147483648).toString(36);var ca=Date.now||function(){return+new Date};function da(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c};function r(a){this.stack=Error().stack||"";if(a)this.message=String(a)}da(r,Error);r.prototype.name="CustomError";function ea(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a}var fa=/^[a-zA-Z0-9\-_.!~*'()]*$/;function s(a){a=String(a);if(!fa.test(a))return encodeURIComponent(a);return a}
function ga(a,b){if(b)return a.replace(ha,"&").replace(ia,"<").replace(ja,">").replace(ka,""");else{if(!la.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(ha,"&");if(a.indexOf("<")!=-1)a=a.replace(ia,"<");if(a.indexOf(">")!=-1)a=a.replace(ja,">");if(a.indexOf('"')!=-1)a=a.replace(ka,""");return a}}var ha=/&/g,ia=/</g,ja=/>/g,ka=/\"/g,la=/[&<>\"]/;
function ma(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),h=0;c==0&&h<f;h++){var m=d[h]||"",Ca=e[h]||"",Da=RegExp("(\\d*)(\\D*)","g"),Ea=RegExp("(\\d*)(\\D*)","g");do{var w=Da.exec(m)||["","",""],x=Ea.exec(Ca)||["","",""];if(w[0].length==0&&x[0].length==0)break;c=t(w[1].length==0?0:parseInt(w[1],10),x[1].length==0?0:parseInt(x[1],10))||t(w[2].length==0,x[2].length==0)||t(w[2],x[2])}while(c==
0)}return c}function t(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};function u(a,b){b.unshift(a);r.call(this,ea.apply(i,b));b.shift();this.F=a}da(u,r);u.prototype.name="AssertionError";function v(a,b){if(!a){var c=Array.prototype.slice.call(arguments,2),d="Assertion failed";if(b){d+=": "+b;var e=c}throw new u(""+d,e||[]);}return a};var na=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function oa(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function pa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function qa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}var ra=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];function sa(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<ra.length;e++){b=ra[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}};var y=Array.prototype,ta=y.indexOf?function(a,b,c){v(a.length!=i);return y.indexOf.call(a,b,c)}:function(a,b,c){c=c==i?0:c<0?Math.max(0,a.length+c):c;if(q(a)){if(!q(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},z=y.forEach?function(a,b,c){v(a.length!=i);y.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};function ua(){return y.concat.apply(y,arguments)}
function va(a){if(o(a))return ua(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}function wa(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;if(o(c)||(d=p(c))&&c.hasOwnProperty("callee"))a.push.apply(a,c);else if(d)for(var e=a.length,f=c.length,h=0;h<f;h++)a[e+h]=c[h];else a.push(c)}}function xa(a,b,c){v(a.length!=i);return arguments.length<=2?y.slice.call(a,b):y.slice.call(a,b,c)};function ya(a){if(typeof a.l=="function")return a.l();if(q(a))return a.split("");if(p(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return pa(a)}function za(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(p(a)||q(a))z(a,b,c);else{var d;if(typeof a.p=="function")d=a.p();else if(typeof a.l!="function")if(p(a)||q(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f);d=d}else d=qa(a);else d=void 0;e=ya(a);f=e.length;for(var h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)}};function A(a){this.h={};this.c=[];var b=arguments.length;if(b>1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c<b;c+=2)this.m(arguments[c],arguments[c+1])}else if(a){if(a instanceof A){b=a.p();c=a.l()}else{b=qa(a);c=pa(a)}for(var d=0;d<b.length;d++)this.m(b[d],c[d])}}k=A.prototype;k.b=0;k.A=0;k.l=function(){B(this);for(var a=[],b=0;b<this.c.length;b++)a.push(this.h[this.c[b]]);return a};k.p=function(){B(this);return this.c.concat()};k.i=function(a){return C(this.h,a)};
k.remove=function(a){if(C(this.h,a)){delete this.h[a];this.b--;this.A++;this.c.length>2*this.b&&B(this);return g}return j};function B(a){if(a.b!=a.c.length){for(var b=0,c=0;b<a.c.length;){var d=a.c[b];if(C(a.h,d))a.c[c++]=d;b++}a.c.length=c}if(a.b!=a.c.length){var e={};for(c=b=0;b<a.c.length;){d=a.c[b];if(!C(e,d)){a.c[c++]=d;e[d]=1}b++}a.c.length=c}}k.j=function(a,b){if(C(this.h,a))return this.h[a];return b};k.m=function(a,b){if(!C(this.h,a)){this.b++;this.c.push(a);this.A++}this.h[a]=b};k.n=function(){return new A(this)};
function C(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function D(a,b){var c;if(a instanceof D){this.s(b==i?a.e:b);E(this,a.k);F(this,a.v);G(this,a.o);H(this,a.r);I(this,a.q);J(this,a.f.n());K(this,a.t)}else if(a&&(c=String(a).match(na))){this.s(!!b);E(this,c[1]||"",g);F(this,c[2]||"",g);G(this,c[3]||"",g);H(this,c[4]);I(this,c[5]||"",g);J(this,c[6]||"",g);K(this,c[7]||"",g)}else{this.s(!!b);this.f=new L(i,this,this.e)}}k=D.prototype;k.k="";k.v="";k.o="";k.r=i;k.q="";k.t="";k.C=j;k.e=j;
k.toString=function(){if(this.d)return this.d;var a=[];this.k&&a.push(M(this.k,Aa),":");if(this.o){a.push("//");this.v&&a.push(M(this.v,Aa),"@");var b;b=this.o;b=q(b)?encodeURIComponent(b):i;a.push(b);this.r!=i&&a.push(":",String(this.r))}if(this.q){this.o&&this.q.charAt(0)!="/"&&a.push("/");a.push(M(this.q,Ba))}(b=String(this.f))&&a.push("?",b);this.t&&a.push("#",M(this.t,Fa));return this.d=a.join("")};
k.n=function(){var a=this.k,b=this.v,c=this.o,d=this.r,e=this.q,f=this.f.n(),h=this.t,m=new D(i,this.e);a&&E(m,a);b&&F(m,b);c&&G(m,c);d&&H(m,d);e&&I(m,e);f&&J(m,f);h&&K(m,h);return m};function E(a,b,c){N(a);delete a.d;a.k=c?b?decodeURIComponent(b):"":b;if(a.k)a.k=a.k.replace(/:$/,"");return a}function F(a,b,c){N(a);delete a.d;a.v=c?b?decodeURIComponent(b):"":b;return a}function G(a,b,c){N(a);delete a.d;a.o=c?b?decodeURIComponent(b):"":b;return a}
function H(a,b){N(a);delete a.d;if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.r=b}else a.r=i;return a}function I(a,b,c){N(a);delete a.d;a.q=c?b?decodeURIComponent(b):"":b;return a}function J(a,b,c){N(a);delete a.d;if(b instanceof L){a.f=b;a.f.u=a;a.f.s(a.e)}else{c||(b=M(b,Ga));a.f=new L(b,a,a.e)}return a}
function Ha(a,b,c){N(a);delete a.d;o(c)||(c=[String(c)]);var d=a.f;b=b;c=c;O(d);P(d);b=Q(d,b);if(d.i(b)){var e=d.a.j(b);if(o(e))d.b-=e.length;else d.b--}if(c.length>0){d.a.m(b,c);d.b+=c.length}return a}function K(a,b,c){N(a);delete a.d;a.t=c?b?decodeURIComponent(b):"":b;return a}function N(a){if(a.C)throw Error("Tried to modify a read-only Uri");}k.s=function(a){this.e=a;this.f&&this.f.s(a)};var Ia=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;
function M(a,b){var c=i;if(q(a)){c=a;Ia.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,Ja)}return c}function Ja(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Aa=/[#\/\?@]/g,Ba=/[\#\?]/g,Ga=/[\#\?@]/g,Fa=/#/g;function L(a,b,c){this.g=a||i;this.u=b||i;this.e=!!c}
function O(a){if(!a.a){a.a=new A;if(a.g)for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=i,f=i;if(d>=0){e=b[c].substring(0,d);f=b[c].substring(d+1)}else e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=Q(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}}k=L.prototype;k.a=i;k.b=i;k.add=function(a,b){O(this);P(this);a=Q(this,a);if(this.i(a)){var c=this.a.j(a);o(c)?c.push(b):this.a.m(a,[c,b])}else this.a.m(a,b);this.b++;return this};
k.remove=function(a){O(this);a=Q(this,a);if(this.a.i(a)){P(this);var b=this.a.j(a);if(o(b))this.b-=b.length;else this.b--;return this.a.remove(a)}return j};k.i=function(a){O(this);a=Q(this,a);return this.a.i(a)};k.p=function(){O(this);for(var a=this.a.l(),b=this.a.p(),c=[],d=0;d<b.length;d++){var e=a[d];if(o(e))for(var f=0;f<e.length;f++)c.push(b[d]);else c.push(b[d])}return c};
k.l=function(a){O(this);if(a){a=Q(this,a);if(this.i(a)){var b=this.a.j(a);if(o(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.a.l();a=[];for(var c=0;c<b.length;c++){var d=b[c];o(d)?wa(a,d):a.push(d)}}return a};k.m=function(a,b){O(this);P(this);a=Q(this,a);if(this.i(a)){var c=this.a.j(a);if(o(c))this.b-=c.length;else this.b--}this.a.m(a,b);this.b++;return this};k.j=function(a,b){O(this);a=Q(this,a);if(this.i(a)){var c=this.a.j(a);return o(c)?c[0]:c}else return b};
k.toString=function(){if(this.g)return this.g;if(!this.a)return"";for(var a=[],b=0,c=this.a.p(),d=0;d<c.length;d++){var e=c[d],f=s(e);e=this.a.j(e);if(o(e))for(var h=0;h<e.length;h++){b>0&&a.push("&");a.push(f);e[h]!==""&&a.push("=",s(e[h]));b++}else{b>0&&a.push("&");a.push(f);e!==""&&a.push("=",s(e));b++}}return this.g=a.join("")};function P(a){delete a.w;delete a.g;a.u&&delete a.u.d}k.n=function(){var a=new L;if(this.w)a.w=this.w;if(this.g)a.g=this.g;if(this.a)a.a=this.a.n();return a};
function Q(a,b){var c=String(b);if(a.e)c=c.toLowerCase();return c}k.s=function(a){if(a&&!this.e){O(this);P(this);za(this.a,function(b,c){var d=c.toLowerCase();if(c!=d){this.remove(c);this.add(d,b)}},this)}this.e=a};function Ka(a){var b;b=(b=a.className)&&typeof b.split=="function"?b.split(/\s+/):[];var c;c=xa(arguments,1);for(var d=0,e=0;e<c.length;e++)if(!(ta(b,c[e])>=0)){b.push(c[e]);d++}c=d==c.length;a.className=b.join(" ");return c};var R,S,T,La;function Ma(){return l.navigator?l.navigator.userAgent:i}La=T=S=R=j;var U;if(U=Ma()){var Na=l.navigator;R=U.indexOf("Opera")==0;S=!R&&U.indexOf("MSIE")!=-1;T=!R&&U.indexOf("WebKit")!=-1;La=!R&&!T&&Na.product=="Gecko"}var V=S,Oa=La,Pa=T,W;
a:{var X="",Y;if(R&&l.opera){var Qa=l.opera.version;X=typeof Qa=="function"?Qa():Qa}else{if(Oa)Y=/rv\:([^\);]+)(\)|;)/;else if(V)Y=/MSIE\s+([^\);]+)(\)|;)/;else if(Pa)Y=/WebKit\/(\S+)/;if(Y){var Ra=Y.exec(Ma());X=Ra?Ra[1]:""}}if(V){var Sa,Ta=l.document;Sa=Ta?Ta.documentMode:undefined;if(Sa>parseFloat(X)){W=String(Sa);break a}}W=X}var Z={};var Ua=!V||Z["9"]||(Z["9"]=ma(W,"9")>=0);V&&(Z["9"]||(Z["9"]=ma(W,"9")>=0));function Va(a,b){oa(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in Wa)a.setAttribute(Wa[d],c);else a[d]=c})}var Wa={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};
function $(){var a=arguments,b=a[0],c=a[1];if(!Ua&&c&&(c.name||c.type)){b=["<",b];c.name&&b.push(' name="',ga(c.name),'"');if(c.type){b.push(' type="',ga(c.type),'"');var d={};sa(d,c);c=d;delete c.type}b.push(">");b=b.join("")}b=document.createElement(b);if(c)if(q(c))b.className=c;else o(c)?Ka.apply(i,[b].concat(c)):Va(b,c);a.length>2&&Xa(document,b,a,2);return b}
function Xa(a,b,c,d){function e(h){if(h)b.appendChild(q(h)?a.createTextNode(h):h)}for(d=d;d<c.length;d++){var f=c[d];p(f)&&!(ba(f)&&f.nodeType>0)?z(Ya(f)?va(f):f,e):e(f)}}function Ya(a){if(a&&typeof a.length=="number")if(ba(a))return typeof a.item=="function"||typeof a.item=="string";else if(n(a)=="function")return typeof a.item=="function";return j};function Za(a,b){this.u=new D(a);this.B=b?b:"callback";this.z=5E3}var $a=0;
Za.prototype.send=function(a,b,c,d){if(!document.documentElement.firstChild){c&&c(a);return i}d=d||"_"+($a++).toString(36)+ca().toString(36);l._callbacks_||(l._callbacks_={});var e=document.createElement("script"),f=i;if(this.z>0)f=l.setTimeout(ab(d,e,a,c),this.z);c=this.u.n();for(var h in a)if(!a.hasOwnProperty||a.hasOwnProperty(h))Ha(c,h,a[h]);if(b){l._callbacks_[d]=bb(d,e,b,f);Ha(c,this.B,"_callbacks_."+d)}Va(e,{type:"text/javascript",id:d,charset:"UTF-8",src:c.toString()});document.getElementsByTagName("head")[0].appendChild(e);
return{D:d,z:f}};function ab(a,b,c,d){return function(){cb(a,b,j);d&&d(c)}}function bb(a,b,c,d){return function(){l.clearTimeout(d);cb(a,b,g);c.apply(undefined,arguments)}}function cb(a,b,c){l.setTimeout(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},0);if(l._callbacks_[a])if(c)delete l._callbacks_[a];else l._callbacks_[a]=aa};window.main=function(){var a=q("uv_suggestion_list")?document.getElementById("uv_suggestion_list"):"uv_suggestion_list";(new Za("http://webglearth.uservoice.com/api/v1/forums/93887/suggestions.json?client=ltazXkDrZ92eVcXGycKRag")).send({},function(b){console.log(b.suggestions);z(b.suggestions,function(c){c=$("li",{"class":"uv_suggestion"},$("div",{"class":"uv_votes"},$("div",{"class":"uv_num_votes"},c.vote_count.toString()),document.createTextNode("votes")),$("a",{target:"_blank",href:c.url},c.title));
a.appendChild(c)})})};
</script>
<style type="text/css" media="screen">
body, html { font: normal 10pt Arial,sans-serif; }
#uv_forum { color: #666; }
ul { padding:0; margin:0; padding-top:10px; }
#uv_suggestion_list { margin:0.3em 0 0.3em 0 !important;}
#uv_suggestion_list li.uv_suggestion { position:relative; padding:0 0 0 46px; margin:0 0 1em 0; background-image:none; min-height:38px; _height:38px; list-style:none; border-bottom: dotted 1px #CCC; }
#uv_suggestion_list li .uv_votes { position:absolute; left:0; border:1px solid #ccc; color:#333333; padding:2px 4px; text-align:center; font-size:9px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
#uv_suggestion_list li .uv_votes .uv_num_votes { display:block; font-size:14px; line-height:14px; font-style:normal; font-weight:bold; padding:2px 0 0 0; }
/* Comment icon from: http://wefunction.com/2008/07/function-free-icon-set */
#uv_suggestion_list li .uv_comments { font-size:0.9em; color:#14a305; padding-left:18px; background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAMCAMAAABcOc2zAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAYBQTFRF3ejsrsXOtcfOtMvU3Ojt8vT03efq5u7x1ePp1uLn2uXpt8vT1uTq5e3w4Ovv+vv75O3xr8bQq8LK3ujsrsbQ2+Diu8/Y0t7i1uDkr8XOscTKr7zAqbrB4uvv2+Dhts3Vts3W4evv0NXX19ze+fr6wMvQ2eXqy9PV0djZ0tfZr77E4enuztbX1+LmuMfMr8XN2+Xo4uXn2t/hvdDXt8LG/v//4+vvydnfsMjQsMfP4+zv4Ort2+jt0eDlwdTctMrS7/Hy8fPzrMDH9PX209/k1d7hore/rLi9s8rT/P39ssnR7e/ww9fe2OPoy9rgz93ipLvDy9ba6ezs6+7vuMjOvMjNzdTXxMzPz9XW0Nnc1N/k2ebqu8fKyNLW/Pz81Nja/f394+fo1uLmxNff4OrvwdLZzdbaztXY0Njbu9DY4OTm0tve/v7++/v73ebq2ePn0t/jytnetcrTscjRsMbOqrrA4+zu8/X14ert3+jr2+jsp77H0eDm2d/hrcbP////NxIGyAAAAIB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wA4BUtnAAAAv0lEQVR42mKoB4FgZZ10DUMVEJMBiL0zsvPz2Axc00RzwAJZgcJmvOzsvGXaEupxQAFWVQZha1kBAauKSraoMKBArbguF0MKnyIfA1eSbyg/Q31kYQGnWhULi000p4t/SDlDfWyJsbktBw8PR41fKrebM0O9kZCkvZidT7JdZpG+ZWkCQz2/tBejBbO8AnMxI6OTHMhaRxNuD5G6ujrBuoB4iMM8NWP0mJiktGSqlSACQOCQaBiUyxruHmEKEGAAicU1n1nKsAQAAAAASUVORK5CYII=) no-repeat 0px 0px; }
/* #uv_suggestion_list li .uv_comments:focus,
#uv_suggestion_list li .uv_comments:hover { color:#333333; text-decoration:underline; }
*/
a.call-to-action:hover {
background-color: #06C;
color: white;
}
a.call-to-action {
font-weight: bold;
font-size: 160%;
letter-spacing: -1px;
display: block;
left: 25px;
display: block;
padding: 7px 35px 7px 7px;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a {
color: #06C;
text-decoration: none;
}
</style>
</head>
<body>
<h2>Community suggestions</h2>
<div id="uv_forum">
We've set up a <a href="http://webglearth.uservoice.com/forums/93887-general" target="_blank">feedback forum</a> so you can tell us what's on your mind. Please <a href="http://webglearth.uservoice.com/forums/93887-general" target="_blank">go there</a> and be heard!
</div>
<ul id="uv_suggestion_list">
</ul>
<a class="call-to-action" href="http://webglearth.uservoice.com/forums/93887-general" target="_blank">» Submit your idea</a>
<script type="text/javascript">main()</script>
</body>
</html>