EtherAddressLookup
+ + ++ +
diff --git a/README.md b/README.md index d5f74157..4f6a8681 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ I made it because I needed it. ##### Read: http://harrydenley.com/ethaddresslookup-chrome-extension/ -### Installation +### Manual Installation * Clone/download [the repo](https://github.com/409H/EtherAddressLookup). * Go to [chrome://extensions](chrome://extensions) in Chrome. diff --git a/css/app.css b/css/app.css index c66e40dd..1e9b8d70 100644 --- a/css/app.css +++ b/css/app.css @@ -11,3 +11,18 @@ border: 1px solid transparent; color: inherit; } + +#ext-etheraddresslookup-popup { + margin: 0; + padding: 0px; + font-family: "Arial"; + font-size: 12pt; + width: 300px; +} +#ext-etheraddresslookup-popup #content { + padding: 15px; + margin-top: 15px; +} +#ext-etheraddresslookup-popup #content #footer { + font-size: 70%; +} diff --git a/css/skyblue.min.css b/css/skyblue.min.css new file mode 100644 index 00000000..50558339 --- /dev/null +++ b/css/skyblue.min.css @@ -0,0 +1 @@ +a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,col-md-,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}html{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:transparent}@media screen and (max-device-width:480px){html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}}*{box-sizing:border-box}body>iframe{display:none}.container{margin-right:auto;margin-left:auto;padding-left:20px;padding-right:20px}.container:after,.container:before{content:" ";display:table;line-height:0}.container:after{clear:both}.row{margin-left:-20px;margin-right:-20px}.row:after,.row:before{content:" ";display:table;line-height:0}.row:after{clear:both}.col{min-height:1px;position:relative;padding-left:20px;padding-right:20px}.col:after,.col:before{content:" ";display:table;line-height:0}.col:after{clear:both}.col .float-right{float:right}.xs-0{width:0;float:left}.offset-xs-0{margin-left:0}.xs-1{width:8.33333%;float:left}.offset-xs-1{margin-left:8.33333%}.xs-2{width:16.66667%;float:left}.offset-xs-2{margin-left:16.66667%}.xs-3{width:25%;float:left}.offset-xs-3{margin-left:25%}.xs-4{width:33.33333%;float:left}.offset-xs-4{margin-left:33.33333%}.xs-5{width:41.66667%;float:left}.offset-xs-5{margin-left:41.66667%}.xs-6{width:50%;float:left}.offset-xs-6{margin-left:50%}.xs-7{width:58.33333%;float:left}.offset-xs-7{margin-left:58.33333%}.xs-8{width:66.66667%;float:left}.offset-xs-8{margin-left:66.66667%}.xs-9{width:75%;float:left}.offset-xs-9{margin-left:75%}.xs-10{width:83.33333%;float:left}.offset-xs-10{margin-left:83.33333%}.xs-11{width:91.66667%;float:left}.offset-xs-11{margin-left:91.66667%}.xs-12{width:100%;float:left}.offset-xs-12{margin-left:100%}@media screen and (min-width:480px){.sm-0{width:0;float:left}.offset-sm-0{margin-left:0}.sm-1{width:8.33333%;float:left}.offset-sm-1{margin-left:8.33333%}.sm-2{width:16.66667%;float:left}.offset-sm-2{margin-left:16.66667%}.sm-3{width:25%;float:left}.offset-sm-3{margin-left:25%}.sm-4{width:33.33333%;float:left}.offset-sm-4{margin-left:33.33333%}.sm-5{width:41.66667%;float:left}.offset-sm-5{margin-left:41.66667%}.sm-6{width:50%;float:left}.offset-sm-6{margin-left:50%}.sm-7{width:58.33333%;float:left}.offset-sm-7{margin-left:58.33333%}.sm-8{width:66.66667%;float:left}.offset-sm-8{margin-left:66.66667%}.sm-9{width:75%;float:left}.offset-sm-9{margin-left:75%}.sm-10{width:83.33333%;float:left}.offset-sm-10{margin-left:83.33333%}.sm-11{width:91.66667%;float:left}.offset-sm-11{margin-left:91.66667%}.sm-12{width:100%;float:left}.offset-sm-12{margin-left:100%}}@media screen and (min-width:768px){.container{max-width:720px}.md-0{width:0;float:left}.offset-md-0{margin-left:0}.md-1{width:8.33333%;float:left}.offset-md-1{margin-left:8.33333%}.md-2{width:16.66667%;float:left}.offset-md-2{margin-left:16.66667%}.md-3{width:25%;float:left}.offset-md-3{margin-left:25%}.md-4{width:33.33333%;float:left}.offset-md-4{margin-left:33.33333%}.md-5{width:41.66667%;float:left}.offset-md-5{margin-left:41.66667%}.md-6{width:50%;float:left}.offset-md-6{margin-left:50%}.md-7{width:58.33333%;float:left}.offset-md-7{margin-left:58.33333%}.md-8{width:66.66667%;float:left}.offset-md-8{margin-left:66.66667%}.md-9{width:75%;float:left}.offset-md-9{margin-left:75%}.md-10{width:83.33333%;float:left}.offset-md-10{margin-left:83.33333%}.md-11{width:91.66667%;float:left}.offset-md-11{margin-left:91.66667%}.md-12{width:100%;float:left}.offset-md-12{margin-left:100%}}@media screen and (min-width:970px){.container{max-width:940px}.lg-0{width:0;float:left}.offset-lg-0{margin-left:0}.lg-1{width:8.33333%;float:left}.offset-lg-1{margin-left:8.33333%}.lg-2{width:16.66667%;float:left}.offset-lg-2{margin-left:16.66667%}.lg-3{width:25%;float:left}.offset-lg-3{margin-left:25%}.lg-4{width:33.33333%;float:left}.offset-lg-4{margin-left:33.33333%}.lg-5{width:41.66667%;float:left}.offset-lg-5{margin-left:41.66667%}.lg-6{width:50%;float:left}.offset-lg-6{margin-left:50%}.lg-7{width:58.33333%;float:left}.offset-lg-7{margin-left:58.33333%}.lg-8{width:66.66667%;float:left}.offset-lg-8{margin-left:66.66667%}.lg-9{width:75%;float:left}.offset-lg-9{margin-left:75%}.lg-10{width:83.33333%;float:left}.offset-lg-10{margin-left:83.33333%}.lg-11{width:91.66667%;float:left}.offset-lg-11{margin-left:91.66667%}.lg-12{width:100%;float:left}.offset-lg-12{margin-left:100%}}@media screen and (min-width:1200px){.container{max-width:1150px}.xl-0{width:0;float:left}.offset-xl-0{margin-left:0}.xl-1{width:8.33333%;float:left}.offset-xl-1{margin-left:8.33333%}.xl-2{width:16.66667%;float:left}.offset-xl-2{margin-left:16.66667%}.xl-3{width:25%;float:left}.offset-xl-3{margin-left:25%}.xl-4{width:33.33333%;float:left}.offset-xl-4{margin-left:33.33333%}.xl-5{width:41.66667%;float:left}.offset-xl-5{margin-left:41.66667%}.xl-6{width:50%;float:left}.offset-xl-6{margin-left:50%}.xl-7{width:58.33333%;float:left}.offset-xl-7{margin-left:58.33333%}.xl-8{width:66.66667%;float:left}.offset-xl-8{margin-left:66.66667%}.xl-9{width:75%;float:left}.offset-xl-9{margin-left:75%}.xl-10{width:83.33333%;float:left}.offset-xl-10{margin-left:83.33333%}.xl-11{width:91.66667%;float:left}.offset-xl-11{margin-left:91.66667%}.xl-12{width:100%;float:left}.offset-xl-12{margin-left:100%}}h1,h2,h3,h4,h5,h6{line-height:1.2em;margin:0 0 .5em;font-weight:300;font-family:Dosis,'Helvetica Neue',Helvetica,sans-serif}h1{font-size:2.4em}h2{font-size:2em}h3{font-size:1.7em}h4{font-size:1.4em}h5{font-size:1.2em}h6{font-size:1em}p{line-height:1.5em;margin-bottom:1em}small{font-size:.75em}.big{font-size:1.25em}b,strong{font-weight:700}em,i{font-style:italic}a{color:#659ac9;-webkit-transition:all .25s;transition:all .25s;text-decoration:none}a.secundary{color:#16b6B6}a:active,a:focus,a:hover{color:#2e6392}a:active.secundary,a:focus.secundary,a:hover.secundary{color:#01a1a1}ol,ul{margin-bottom:1em;padding-left:22px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}ul li{list-style:disc}ul li li{list-style:circle}ol li{list-style:decimal}ol.unstyled,ul.unstyled{margin:0;padding:0}ol.unstyled li,ul.unstyled li{margin:0;padding:0;list-style:none}blockquote{border-left:2px solid #ddd;padding:.5em 1em;margin-bottom:1em;font-size:1.1em;color:#555}blockquote cite{font-size:.8em}blockquote cite:before{content:"— "}hr{border:0;border-bottom:1px solid #e9e9e9;margin:20px 0;clear:both}code,pre{font-family:"Deja-vu Sans Mono",Monaco,Menlo,Consolas,"Courier New",monospace;font-size:13px;line-height:1.5em;color:#333;background:#F7F7F9;border:1px solid #E1E1E8;border-radius:3px;padding:.8em 1em;white-space:pre-wrap;word-break:break-all;word-wrap:break-word}pre{margin-bottom:1em}code{display:inline-block;padding:.1em .3em}button,input[type=submit],input[type=button]{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;font-size:1em;-webkit-appearance:none;-webkit-font-smoothing:antialiased}.btn{display:inline-block;min-width:120px;padding:10px 25px;margin-bottom:1em;border:none;border-radius:3px;font-size:1em;line-height:1.4em;text-align:center;text-decoration:none;-webkit-transition:border-color .25s,background-color .25s,color .25s;transition:border-color .25s,background-color .25s,color .25s;background:#4378a7;color:#fff}.btn.btn-small{padding:5px 15px;min-width:30px;font-size:.8em;line-height:1.2em}.btn.btn-big{padding:12px 45px;min-width:200px;font-size:1.4em}.btn:hover{background-color:#2e6392;color:#fff}.btn:active{background-color:#194e7d;color:#fff;top:1px;position:relative}.btn.btn-success{background:#16b6B6;color:#fff}.btn.btn-success:hover{background-color:#01a1a1;color:#fff}.btn.btn-success:active{background-color:#008c8c;color:#fff;top:1px;position:relative}.btn.btn-error{background:#E74C3C;color:#fff}.btn.btn-error:hover{background-color:#d23727;color:#fff}.btn.btn-error:active{background-color:#bd2212;color:#fff;top:1px;position:relative}.btn.btn-warning{background:#F1C000;color:#fff}.btn.btn-warning:hover{background-color:#dcab00;color:#fff}.btn.btn-warning:active{background-color:#c79600;color:#fff;top:1px;position:relative}.btn.btn-light{background:#ecf0f1;color:#999}.btn.btn-light:hover{background-color:#d7dbdc;color:#fff}.btn.btn-light:active{background-color:#c2c6c7;color:#fff;top:1px;position:relative}.btn.btn-dark{background:#252428;color:#fff}.btn.btn-dark:hover{background-color:#100f13;color:#fff}.btn.btn-dark:active{background-color:#000;color:#fff;top:1px;position:relative}.btn.btn-empty{border-radius:1000px;padding:8px 25px;border:2px solid #4378a7;color:#4378a7;background:0 0}.btn.btn-empty:hover{color:#2e6392;border-color:#2e6392;background:0 0}.btn.btn-empty:active{color:#194e7d;border-color:#194e7d;background:0 0}.btn.btn-empty.btn-success{border:2px solid #16b6B6;color:#16b6B6;background:0 0}.btn.btn-empty.btn-success:hover{color:#01a1a1;border-color:#01a1a1;background:0 0}.btn.btn-empty.btn-success:active{color:#008c8c;border-color:#008c8c;background:0 0}.btn.btn-empty.btn-error{border:2px solid #E74C3C;color:#E74C3C;background:0 0}.btn.btn-empty.btn-error:hover{color:#d23727;border-color:#d23727;background:0 0}.btn.btn-empty.btn-error:active{color:#bd2212;border-color:#bd2212;background:0 0}.btn.btn-empty.btn-warning{border:2px solid #F1C000;color:#F1C000;background:0 0}.btn.btn-empty.btn-warning:hover{color:#dcab00;border-color:#dcab00;background:0 0}.btn.btn-empty.btn-warning:active{color:#c79600;border-color:#c79600;background:0 0}.btn.btn-empty.btn-light{border:2px solid #ddd;color:#999;background:0 0}.btn.btn-empty.btn-light:hover{color:#848484;border-color:#c8c8c8;background:0 0}.btn.btn-empty.btn-light:active{color:#6f6f6f;border-color:#b3b3b3;background:0 0}.btn.btn-empty.btn-dark{border:2px solid #252428;color:#252428;background:0 0}.btn.btn-empty.btn-dark:hover{color:#100f13;border-color:#100f13;background:0 0}.btn.btn-empty.btn-dark:active{color:#000;border-color:#000;background:0 0}input[type=text].form-control,input[type=password].form-control,input[type=date].form-control,input[type=datetime].form-control,input[type=email].form-control,input[type=number].form-control,input[type=search].form-control,input[type=tel].form-control,input[type=time].form-control,input[type=url].form-control,select.form-control,textarea.form-control{height:2.625em;width:100%;max-width:100%;padding:.5em;margin-bottom:1em;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;color:#555;font-size:1em;border:2px solid #ddd;border-radius:3px;-webkit-font-smoothing:antialiased;-webkit-appearance:none;-webkit-transition:border-color .25s,color .25s;transition:border-color .25s,color .25s}input[type=text].form-control:focus,input[type=password].form-control:focus,input[type=date].form-control:focus,input[type=datetime].form-control:focus,input[type=email].form-control:focus,input[type=number].form-control:focus,input[type=search].form-control:focus,input[type=tel].form-control:focus,input[type=time].form-control:focus,input[type=url].form-control:focus,select.form-control:focus,textarea.form-control:focus{border:2px solid #4378a7;color:#111;outline:0}.error input[type=text].form-control,.error input[type=password].form-control,.error input[type=date].form-control,.error input[type=datetime].form-control,.error input[type=email].form-control,.error input[type=number].form-control,.error input[type=search].form-control,.error input[type=tel].form-control,.error input[type=time].form-control,.error input[type=url].form-control,.error select.form-control,.error textarea.form-control,input[type=text].form-control.error,input[type=password].form-control.error,input[type=date].form-control.error,input[type=datetime].form-control.error,input[type=email].form-control.error,input[type=number].form-control.error,input[type=search].form-control.error,input[type=tel].form-control.error,input[type=time].form-control.error,input[type=url].form-control.error,select.form-control.error,textarea.form-control.error{border-color:#E74C3C}.warning input[type=text].form-control,.warning input[type=password].form-control,.warning input[type=date].form-control,.warning input[type=datetime].form-control,.warning input[type=email].form-control,.warning input[type=number].form-control,.warning input[type=search].form-control,.warning input[type=tel].form-control,.warning input[type=time].form-control,.warning input[type=url].form-control,.warning select.form-control,.warning textarea.form-control,input[type=text].form-control.warning,input[type=password].form-control.warning,input[type=date].form-control.warning,input[type=datetime].form-control.warning,input[type=email].form-control.warning,input[type=number].form-control.warning,input[type=search].form-control.warning,input[type=tel].form-control.warning,input[type=time].form-control.warning,input[type=url].form-control.warning,select.form-control.warning,textarea.form-control.warning{border-color:#F1C000}.success input[type=text].form-control,.success input[type=password].form-control,.success input[type=date].form-control,.success input[type=datetime].form-control,.success input[type=email].form-control,.success input[type=number].form-control,.success input[type=search].form-control,.success input[type=tel].form-control,.success input[type=time].form-control,.success input[type=url].form-control,.success select.form-control,.success textarea.form-control,input[type=text].form-control.success,input[type=password].form-control.success,input[type=date].form-control.success,input[type=datetime].form-control.success,input[type=email].form-control.success,input[type=number].form-control.success,input[type=search].form-control.success,input[type=tel].form-control.success,input[type=time].form-control.success,input[type=url].form-control.success,select.form-control.success,textarea.form-control.success{border-color:#16b6B6}textarea{height:auto;min-height:100px;line-height:1.5em}select{-webkit-appearance:none;-moz-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){select,select.form-control{background-color:#fff;background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPScxLjEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHdpZHRoPSczNicgaGVpZ2h0PScyMCcgdmlld0JveD0nMCAwIDIwIDIwJz48cGF0aCBkPSdNMTcuNDE4IDYuMTA5YzAuMjcyLTAuMjY4IDAuNzA5LTAuMjY4IDAuOTc5IDBzMC4yNzEgMC43MDEgMCAwLjk2OWwtNy45MDggNy44M2MtMC4yNyAwLjI2OC0wLjcwNyAwLjI2OC0wLjk3OSAwbC03LjkwOC03LjgzYy0wLjI3LTAuMjY4LTAuMjctMC43MDEgMC0wLjk2OXMwLjcwOS0wLjI2OCAwLjk3OSAwbDcuNDE5IDcuMTQxIDcuNDE4LTcuMTQxeicgZmlsbD0nIzQ0NDQ0NCc+PC9wYXRoPjwvc3ZnPg==);background-repeat:no-repeat;background-position:right center;padding-right:36px}}@-moz-document url-prefix(){select,select.form-control{background-color:#fff;background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPScxLjEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHdpZHRoPSczNicgaGVpZ2h0PScyMCcgdmlld0JveD0nMCAwIDIwIDIwJz48cGF0aCBkPSdNMTcuNDE4IDYuMTA5YzAuMjcyLTAuMjY4IDAuNzA5LTAuMjY4IDAuOTc5IDBzMC4yNzEgMC43MDEgMCAwLjk2OWwtNy45MDggNy44M2MtMC4yNyAwLjI2OC0wLjcwNyAwLjI2OC0wLjk3OSAwbC03LjkwOC03LjgzYy0wLjI3LTAuMjY4LTAuMjctMC43MDEgMC0wLjk2OXMwLjcwOS0wLjI2OCAwLjk3OSAwbDcuNDE5IDcuMTQxIDcuNDE4LTcuMTQxeicgZmlsbD0nIzQ0NDQ0NCc+PC9wYXRoPjwvc3ZnPg==);background-repeat:no-repeat;background-position:right center;padding-right:36px}}label{display:block;margin-bottom:.5em;line-height:1.5em}.error label,label.error{color:#E74C3C}.warning label,label.warning{color:#F1C000}.success label,label.success{color:#16b6B6}::-webkit-input-placeholder{color:#999}:-moz-placeholder{color:#999}::-moz-placeholder{color:#999}:-ms-input-placeholder{color:#999}[type=search]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.form .checkbox-group,.form .radio-group{margin-bottom:1em}.form.form-horizontal label{display:inline-block;width:200px;max-width:100%;font-size:1em;vertical-align:top}.form.form-horizontal .checkbox-group,.form.form-horizontal .radio-group{display:inline-block;width:200px;max-width:100%}.form.form-horizontal .checkbox-group label,.form.form-horizontal .radio-group label{display:block}.fancy-checkbox,.fancy-radio{position:relative;cursor:pointer}.fancy-checkbox input,.fancy-radio input{opacity:0;position:absolute}.fancy-checkbox span:after,.fancy-checkbox span:before,.fancy-radio span:after,.fancy-radio span:before{box-sizing:border-box;content:'';display:block;position:absolute;-webkit-transition:all .25s;transition:all .25s}.fancy-checkbox{padding-left:44px}.fancy-checkbox span:before{width:38px;height:22px;border-radius:11px;top:1px;left:0;background:#c3c5c4;border:1px solid #c3c5c4}.fancy-checkbox span:after{width:20px;height:20px;border-radius:10px;background:#fff;top:2px;left:1px}.fancy-checkbox input:checked+span:after{left:17px}.fancy-checkbox input:checked+span:before{background:#16b6B6;border:1px solid #16b6B6}.fancy-checkbox input:focus+span:before{border:1px solid #8f9391}.fancy-checkbox input:focus:checked+span:before{border:1px solid #0b5b5b}.fancy-radio{padding-left:28px}.fancy-radio span:before{width:20px;height:20px;border-radius:50%;top:2px;left:0;background:#fff;border:1px solid #c3c5c4}.fancy-radio span:after{border-radius:50%;background:#fff;top:12px;left:10px;width:0;height:0}.fancy-radio input:checked+span:after{width:10px;height:10px;top:7px;left:5px}.fancy-radio input:checked+span:before{background:#16b6B6}.fancy-radio input:focus+span:before{border:1px solid #0b5b5b}table{max-width:100%;background-color:#fff;border-collapse:collapse;border-spacing:0}th{text-align:left}.table{width:100%;margin-bottom:1em}.table td,.table th{padding:8px;line-height:1.5em;vertical-align:top;border-top:1px solid #ddd}.table thead th{vertical-align:bottom;font-weight:700}.table caption+thead tr:first-child td,.table caption+thead tr:first-child th,.table colgroup+thead tr:first-child td,.table colgroup+thead tr:first-child th,.table thead:first-child tr:first-child td,.table thead:first-child tr:first-child th{border-top:0}.table tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#FbFbFb}.table-condensed td,.table-condensed th{padding:4px 5px}.table-bordered{border:1px solid #ddd;border-collapse:separate;border-left:0;border-radius:3px}.table-bordered td,.table-bordered th{border-left:1px solid #ddd}.table-bordered caption+tbody tr:first-child td,.table-bordered caption+tbody tr:first-child th,.table-bordered caption+thead tr:first-child th,.table-bordered colgroup+tbody tr:first-child td,.table-bordered colgroup+tbody tr:first-child th,.table-bordered colgroup+thead tr:first-child th,.table-bordered tbody:first-child tr:first-child td,.table-bordered tbody:first-child tr:first-child th,.table-bordered thead:first-child tr:first-child th{border-top:0}.table-bordered tbody:first-child tr:first-child>td:first-child,.table-bordered tbody:first-child tr:first-child>th:first-child,.table-bordered thead:first-child tr:first-child>th:first-child{border-top-left-radius:3px}.table-bordered tbody:first-child tr:first-child>td:last-child,.table-bordered tbody:first-child tr:first-child>th:last-child,.table-bordered thead:first-child tr:first-child>th:last-child{border-top-right-radius:3px}.table-bordered tbody:last-child tr:last-child>td:first-child,.table-bordered tbody:last-child tr:last-child>th:first-child,.table-bordered tfoot:last-child tr:last-child>td:first-child,.table-bordered tfoot:last-child tr:last-child>th:first-child,.table-bordered thead:last-child tr:last-child>th:first-child{border-bottom-left-radius:3px}.table-bordered tbody:last-child tr:last-child>td:last-child,.table-bordered tbody:last-child tr:last-child>th:last-child,.table-bordered tfoot:last-child tr:last-child>td:last-child,.table-bordered tfoot:last-child tr:last-child>th:last-child,.table-bordered thead:last-child tr:last-child>th:last-child{border-bottom-right-radius:3px}.table-bordered tfoot+tbody:last-child tr:last-child td:first-child{border-bottom-left-radius:0}.table-bordered tfoot+tbody:last-child tr:last-child td:last-child{border-bottom-right-radius:0}.table-bordered caption+tbody tr:first-child td:first-child,.table-bordered caption+thead tr:first-child th:first-child,.table-bordered colgroup+tbody tr:first-child td:first-child,.table-bordered colgroup+thead tr:first-child th:first-child{border-top-left-radius:3px}.table-bordered caption+tbody tr:first-child td:last-child,.table-bordered caption+thead tr:first-child th:last-child,.table-bordered colgroup+tbody tr:first-child td:last-child,.table-bordered colgroup+thead tr:first-child th:last-child{border-top-right-radius:3px}.table-striped tr:nth-child(odd)>td{background-color:#f7f7f7}.table-hover tr:hover>td{background-color:#5e92bf;border-left-color:#5e92bf;color:#fff}.table-hover tr:hover>td:first-child{border-left:1px solid #ddd}@font-face{font-family:Pe-icon-7-stroke;src:url(../fonts/pe-icon/Pe-icon-7-stroke.eot?-2irksn);src:url(../fonts/pe-icon/Pe-icon-7-stroke.eot?#iefix-2irksn) format('embedded-opentype'),url(../fonts/pe-icon/Pe-icon-7-stroke.woff?-2irksn) format('woff'),url(../fonts/pe-icon/Pe-icon-7-stroke.ttf?-2irksn) format('truetype'),url(../fonts/pe-icon/Pe-icon-7-stroke.svg?-2irksn#Pe-icon-7-stroke) format('svg');font-weight:400;font-style:normal}[class*=" icon-"],[class^=icon-]{display:inline-block;font-family:Pe-icon-7-stroke;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-album:before{content:"\e6aa"}.icon-arc:before{content:"\e6ab"}.icon-back-2:before{content:"\e6ac"}.icon-bandaid:before{content:"\e6ad"}.icon-car:before{content:"\e6ae"}.icon-diamond:before{content:"\e6af"}.icon-door-lock:before{content:"\e6b0"}.icon-eyedropper:before{content:"\e6b1"}.icon-female:before{content:"\e6b2"}.icon-gym:before{content:"\e6b3"}.icon-hammer:before{content:"\e6b4"}.icon-headphones:before{content:"\e6b5"}.icon-helm:before{content:"\e6b6"}.icon-hourglass:before{content:"\e6b7"}.icon-leaf:before{content:"\e6b8"}.icon-magic-wand:before{content:"\e6b9"}.icon-male:before{content:"\e6ba"}.icon-map-2:before{content:"\e6bb"}.icon-next-2:before{content:"\e6bc"}.icon-paint-bucket:before{content:"\e6bd"}.icon-pendrive:before{content:"\e6be"}.icon-photo:before{content:"\e6bf"}.icon-piggy:before{content:"\e6c0"}.icon-plugin:before{content:"\e6c1"}.icon-refresh-2:before{content:"\e6c2"}.icon-rocket:before{content:"\e6c3"}.icon-settings:before{content:"\e6c4"}.icon-shield:before{content:"\e6c5"}.icon-smile:before{content:"\e6c6"}.icon-usb:before{content:"\e6c7"}.icon-vector:before{content:"\e6c8"}.icon-wine:before{content:"\e6c9"}.icon-cloud-upload:before{content:"\e68a"}.icon-cash:before{content:"\e68c"}.icon-close:before{content:"\e680"}.icon-bluetooth:before{content:"\e68d"}.icon-cloud-download:before{content:"\e68b"}.icon-way:before{content:"\e68e"}.icon-close-circle:before{content:"\e681"}.icon-id:before{content:"\e68f"}.icon-angle-up:before{content:"\e682"}.icon-wristwatch:before{content:"\e690"}.icon-angle-up-circle:before{content:"\e683"}.icon-world:before{content:"\e691"}.icon-angle-right:before{content:"\e684"}.icon-volume:before{content:"\e692"}.icon-angle-right-circle:before{content:"\e685"}.icon-users:before{content:"\e693"}.icon-angle-left:before{content:"\e686"}.icon-user-female:before{content:"\e694"}.icon-angle-left-circle:before{content:"\e687"}.icon-up-arrow:before{content:"\e695"}.icon-angle-down:before{content:"\e688"}.icon-switch:before{content:"\e696"}.icon-angle-down-circle:before{content:"\e689"}.icon-scissors:before{content:"\e697"}.icon-wallet:before{content:"\e600"}.icon-safe:before{content:"\e698"}.icon-volume2:before{content:"\e601"}.icon-volume1:before{content:"\e602"}.icon-voicemail:before{content:"\e603"}.icon-video:before{content:"\e604"}.icon-user:before{content:"\e605"}.icon-upload:before{content:"\e606"}.icon-unlock:before{content:"\e607"}.icon-umbrella:before{content:"\e608"}.icon-trash:before{content:"\e609"}.icon-tools:before{content:"\e60a"}.icon-timer:before{content:"\e60b"}.icon-ticket:before{content:"\e60c"}.icon-target:before{content:"\e60d"}.icon-sun:before{content:"\e60e"}.icon-study:before{content:"\e60f"}.icon-stopwatch:before{content:"\e610"}.icon-star:before{content:"\e611"}.icon-speaker:before{content:"\e612"}.icon-signal:before{content:"\e613"}.icon-shuffle:before{content:"\e614"}.icon-shopbag:before{content:"\e615"}.icon-share:before{content:"\e616"}.icon-server:before{content:"\e617"}.icon-search:before{content:"\e618"}.icon-film:before{content:"\e6a5"}.icon-science:before{content:"\e619"}.icon-disk:before{content:"\e6a6"}.icon-ribbon:before{content:"\e61a"}.icon-repeat:before{content:"\e61b"}.icon-refresh:before{content:"\e61c"}.icon-add-user:before{content:"\e6a9"}.icon-refresh-cloud:before{content:"\e61d"}.icon-paperclip:before{content:"\e69c"}.icon-radio:before{content:"\e61e"}.icon-note2:before{content:"\e69d"}.icon-print:before{content:"\e61f"}.icon-network:before{content:"\e69e"}.icon-prev:before{content:"\e620"}.icon-mute:before{content:"\e69f"}.icon-power:before{content:"\e621"}.icon-medal:before{content:"\e6a0"}.icon-portfolio:before{content:"\e622"}.icon-like2:before{content:"\e6a1"}.icon-plus:before{content:"\e623"}.icon-left-arrow:before{content:"\e6a2"}.icon-play:before{content:"\e624"}.icon-key:before{content:"\e6a3"}.icon-plane:before{content:"\e625"}.icon-joy:before{content:"\e6a4"}.icon-photo-gallery:before{content:"\e626"}.icon-pin:before{content:"\e69b"}.icon-phone:before{content:"\e627"}.icon-plug:before{content:"\e69a"}.icon-pen:before{content:"\e628"}.icon-right-arrow:before{content:"\e699"}.icon-paper-plane:before{content:"\e629"}.icon-delete-user:before{content:"\e6a7"}.icon-paint:before{content:"\e62a"}.icon-bottom-arrow:before{content:"\e6a8"}.icon-notebook:before{content:"\e62b"}.icon-note:before{content:"\e62c"}.icon-next:before{content:"\e62d"}.icon-news-paper:before{content:"\e62e"}.icon-musiclist:before{content:"\e62f"}.icon-music:before{content:"\e630"}.icon-mouse:before{content:"\e631"}.icon-more:before{content:"\e632"}.icon-moon:before{content:"\e633"}.icon-monitor:before{content:"\e634"}.icon-micro:before{content:"\e635"}.icon-menu:before{content:"\e636"}.icon-map:before{content:"\e637"}.icon-map-marker:before{content:"\e638"}.icon-mail:before{content:"\e639"}.icon-mail-open:before{content:"\e63a"}.icon-mail-open-file:before{content:"\e63b"}.icon-magnet:before{content:"\e63c"}.icon-loop:before{content:"\e63d"}.icon-look:before{content:"\e63e"}.icon-lock:before{content:"\e63f"}.icon-lintern:before{content:"\e640"}.icon-link:before{content:"\e641"}.icon-like:before{content:"\e642"}.icon-light:before{content:"\e643"}.icon-less:before{content:"\e644"}.icon-keypad:before{content:"\e645"}.icon-junk:before{content:"\e646"}.icon-info:before{content:"\e647"}.icon-home:before{content:"\e648"}.icon-help2:before{content:"\e649"}.icon-help1:before{content:"\e64a"}.icon-graph3:before{content:"\e64b"}.icon-graph2:before{content:"\e64c"}.icon-graph1:before{content:"\e64d"}.icon-graph:before{content:"\e64e"}.icon-global:before{content:"\e64f"}.icon-gleam:before{content:"\e650"}.icon-glasses:before{content:"\e651"}.icon-gift:before{content:"\e652"}.icon-folder:before{content:"\e653"}.icon-flag:before{content:"\e654"}.icon-filter:before{content:"\e655"}.icon-file:before{content:"\e656"}.icon-expand1:before{content:"\e657"}.icon-exapnd2:before{content:"\e658"}.icon-edit:before{content:"\e659"}.icon-drop:before{content:"\e65a"}.icon-drawer:before{content:"\e65b"}.icon-download:before{content:"\e65c"}.icon-display2:before{content:"\e65d"}.icon-display1:before{content:"\e65e"}.icon-diskette:before{content:"\e65f"}.icon-date:before{content:"\e660"}.icon-cup:before{content:"\e661"}.icon-culture:before{content:"\e662"}.icon-crop:before{content:"\e663"}.icon-credit:before{content:"\e664"}.icon-copy-file:before{content:"\e665"}.icon-config:before{content:"\e666"}.icon-compass:before{content:"\e667"}.icon-comment:before{content:"\e668"}.icon-coffee:before{content:"\e669"}.icon-cloud:before{content:"\e66a"}.icon-clock:before{content:"\e66b"}.icon-check:before{content:"\e66c"}.icon-chat:before{content:"\e66d"}.icon-cart:before{content:"\e66e"}.icon-camera:before{content:"\e66f"}.icon-call:before{content:"\e670"}.icon-calculator:before{content:"\e671"}.icon-browser:before{content:"\e672"}.icon-box2:before{content:"\e673"}.icon-box1:before{content:"\e674"}.icon-bookmarks:before{content:"\e675"}.icon-bicycle:before{content:"\e676"}.icon-bell:before{content:"\e677"}.icon-battery:before{content:"\e678"}.icon-ball:before{content:"\e679"}.icon-back:before{content:"\e67a"}.icon-attention:before{content:"\e67b"}.icon-anchor:before{content:"\e67c"}.icon-albums:before{content:"\e67d"}.icon-alarm:before{content:"\e67e"}.icon-airplay:before{content:"\e67f"}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.5em;background-color:#FbFbFb;color:#555}img{max-width:100%}.noscroll{overflow:hidden}.margin-0{margin:0}.margin-top-0{margin-top:0}.margin-bottom-0{margin-bottom:0}.margin-left-0{margin-left:0}.margin-right-0{margin-right:0}.margin-y-0{margin-top:0;margin-bottom:0}.margin-x-0{margin-left:0;margin-right:0}.padding-0{padding:0}.padding-top-0{padding-top:0}.padding-bottom-0{padding-bottom:0}.padding-left-0{padding-left:0}.padding-right-0{padding-right:0}.padding-y-0{padding-top:0;padding-bottom:0}.padding-x-0{padding-left:0;padding-right:0}.margin-5{margin:5px}.margin-top-5{margin-top:5px}.margin-bottom-5{margin-bottom:5px}.margin-left-5{margin-left:5px}.margin-right-5{margin-right:5px}.margin-y-5{margin-top:5px;margin-bottom:5px}.margin-x-5{margin-left:5px;margin-right:5px}.padding-5{padding:5px}.padding-top-5{padding-top:5px}.padding-bottom-5{padding-bottom:5px}.padding-left-5{padding-left:5px}.padding-right-5{padding-right:5px}.padding-y-5{padding-top:5px;padding-bottom:5px}.padding-x-5{padding-left:5px;padding-right:5px}.margin-10{margin:10px}.margin-top-10{margin-top:10px}.margin-bottom-10{margin-bottom:10px}.margin-left-10{margin-left:10px}.margin-right-10{margin-right:10px}.margin-y-10{margin-top:10px;margin-bottom:10px}.margin-x-10{margin-left:10px;margin-right:10px}.padding-10{padding:10px}.padding-top-10{padding-top:10px}.padding-bottom-10{padding-bottom:10px}.padding-left-10{padding-left:10px}.padding-right-10{padding-right:10px}.padding-y-10{padding-top:10px;padding-bottom:10px}.padding-x-10{padding-left:10px;padding-right:10px}.margin-15{margin:15px}.margin-top-15{margin-top:15px}.margin-bottom-15{margin-bottom:15px}.margin-left-15{margin-left:15px}.margin-right-15{margin-right:15px}.margin-y-15{margin-top:15px;margin-bottom:15px}.margin-x-15{margin-left:15px;margin-right:15px}.padding-15{padding:15px}.padding-top-15{padding-top:15px}.padding-bottom-15{padding-bottom:15px}.padding-left-15{padding-left:15px}.padding-right-15{padding-right:15px}.padding-y-15{padding-top:15px;padding-bottom:15px}.padding-x-15{padding-left:15px;padding-right:15px}.margin-20{margin:20px}.margin-top-20{margin-top:20px}.margin-bottom-20{margin-bottom:20px}.margin-left-20{margin-left:20px}.margin-right-20{margin-right:20px}.margin-y-20{margin-top:20px;margin-bottom:20px}.margin-x-20{margin-left:20px;margin-right:20px}.padding-20{padding:20px}.padding-top-20{padding-top:20px}.padding-bottom-20{padding-bottom:20px}.padding-left-20{padding-left:20px}.padding-right-20{padding-right:20px}.padding-y-20{padding-top:20px;padding-bottom:20px}.padding-x-20{padding-left:20px;padding-right:20px}.margin-25{margin:25px}.margin-top-25{margin-top:25px}.margin-bottom-25{margin-bottom:25px}.margin-left-25{margin-left:25px}.margin-right-25{margin-right:25px}.margin-y-25{margin-top:25px;margin-bottom:25px}.margin-x-25{margin-left:25px;margin-right:25px}.padding-25{padding:25px}.padding-top-25{padding-top:25px}.padding-bottom-25{padding-bottom:25px}.padding-left-25{padding-left:25px}.padding-right-25{padding-right:25px}.padding-y-25{padding-top:25px;padding-bottom:25px}.padding-x-25{padding-left:25px;padding-right:25px}.margin-30{margin:30px}.margin-top-30{margin-top:30px}.margin-bottom-30{margin-bottom:30px}.margin-left-30{margin-left:30px}.margin-right-30{margin-right:30px}.margin-y-30{margin-top:30px;margin-bottom:30px}.margin-x-30{margin-left:30px;margin-right:30px}.padding-30{padding:30px}.padding-top-30{padding-top:30px}.padding-bottom-30{padding-bottom:30px}.padding-left-30{padding-left:30px}.padding-right-30{padding-right:30px}.padding-y-30{padding-top:30px;padding-bottom:30px}.padding-x-30{padding-left:30px;padding-right:30px}.margin-40{margin:40px}.margin-top-40{margin-top:40px}.margin-bottom-40{margin-bottom:40px}.margin-left-40{margin-left:40px}.margin-right-40{margin-right:40px}.margin-y-40{margin-top:40px;margin-bottom:40px}.margin-x-40{margin-left:40px;margin-right:40px}.padding-40{padding:40px}.padding-top-40{padding-top:40px}.padding-bottom-40{padding-bottom:40px}.padding-left-40{padding-left:40px}.padding-right-40{padding-right:40px}.padding-y-40{padding-top:40px;padding-bottom:40px}.padding-x-40{padding-left:40px;padding-right:40px}.margin-50{margin:50px}.margin-top-50{margin-top:50px}.margin-bottom-50{margin-bottom:50px}.margin-left-50{margin-left:50px}.margin-right-50{margin-right:50px}.margin-y-50{margin-top:50px;margin-bottom:50px}.margin-x-50{margin-left:50px;margin-right:50px}.padding-50{padding:50px}.padding-top-50{padding-top:50px}.padding-bottom-50{padding-bottom:50px}.padding-left-50{padding-left:50px}.padding-right-50{padding-right:50px}.padding-y-50{padding-top:50px;padding-bottom:50px}.padding-x-50{padding-left:50px;padding-right:50px}.margin-100{margin:100px}.margin-top-100{margin-top:100px}.margin-bottom-100{margin-bottom:100px}.margin-left-100{margin-left:100px}.margin-right-100{margin-right:100px}.margin-y-100{margin-top:100px;margin-bottom:100px}.margin-x-100{margin-left:100px;margin-right:100px}.padding-100{padding:100px}.padding-top-100{padding-top:100px}.padding-bottom-100{padding-bottom:100px}.padding-left-100{padding-left:100px}.padding-right-100{padding-right:100px}.padding-y-100{padding-top:100px;padding-bottom:100px}.padding-x-100{padding-left:100px;padding-right:100px}.float-left{float:left}.float-right{float:right}.float-none{float:none}.clearfix:after,.clearfix:before{content:" ";display:table;line-height:0}.clearfix:after{clear:both}.relative{position:relative}.absolute{position:absolute}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-justify{text-align:justify}.uppercase{text-transform:uppercase}.color-main{color:#4378a7}.color-main2{color:#659ac9}.color-success{color:#16b6B6}.color-error{color:#E74C3C}.color-warning{color:#F1C000}.color-light{color:#ecf0f1}.color-dark{color:#252428}.color-black{color:#111}.color-white{color:#fff}.bg-main{background-color:#4378a7;color:#fff}.bg-success{background-color:#16b6B6;color:#fff}.bg-error{background-color:#E74C3C;color:#fff}.bg-warning{background-color:#F1C000;color:#fff}.bg-light{background-color:#ecf0f1;color:#999}.bg-dark{background-color:#252428;color:#fff}.bg-white{background-color:#fff}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.hide{display:none}.full-width{width:100%}.middle{vertical-align:middle}.radius-3{border-radius:3px}.radius-5{border-radius:5px}.radius-10{border-radius:10px}.radius-15{border-radius:15px}.radius-big{border-radius:1000px}.no-border{border:none}.ellipsis{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width:480px){.sm-block{display:block}.sm-inline{display:inline}.sm-inline-block{display:inline-block}.sm-hide{display:none}.sm-margin-0{margin:0}.sm-margin-top-0{margin-top:0}.sm-margin-bottom-0{margin-bottom:0}.sm-margin-left-0{margin-left:0}.sm-margin-right-0{margin-right:0}.sm-margin-y-0{margin-top:0;margin-bottom:0}.sm-margin-x-0{margin-left:0;margin-right:0}.sm-padding-0{padding:0}.sm-padding-top-0{padding-top:0}.sm-padding-bottom-0{padding-bottom:0}.sm-padding-left-0{padding-left:0}.sm-padding-right-0{padding-right:0}.sm-padding-y-0{padding-top:0;padding-bottom:0}.sm-padding-x-0{padding-left:0;padding-right:0}.sm-margin-5{margin:5px}.sm-margin-top-5{margin-top:5px}.sm-margin-bottom-5{margin-bottom:5px}.sm-margin-left-5{margin-left:5px}.sm-margin-right-5{margin-right:5px}.sm-margin-y-5{margin-top:5px;margin-bottom:5px}.sm-margin-x-5{margin-left:5px;margin-right:5px}.sm-padding-5{padding:5px}.sm-padding-top-5{padding-top:5px}.sm-padding-bottom-5{padding-bottom:5px}.sm-padding-left-5{padding-left:5px}.sm-padding-right-5{padding-right:5px}.sm-padding-y-5{padding-top:5px;padding-bottom:5px}.sm-padding-x-5{padding-left:5px;padding-right:5px}.sm-margin-10{margin:10px}.sm-margin-top-10{margin-top:10px}.sm-margin-bottom-10{margin-bottom:10px}.sm-margin-left-10{margin-left:10px}.sm-margin-right-10{margin-right:10px}.sm-margin-y-10{margin-top:10px;margin-bottom:10px}.sm-margin-x-10{margin-left:10px;margin-right:10px}.sm-padding-10{padding:10px}.sm-padding-top-10{padding-top:10px}.sm-padding-bottom-10{padding-bottom:10px}.sm-padding-left-10{padding-left:10px}.sm-padding-right-10{padding-right:10px}.sm-padding-y-10{padding-top:10px;padding-bottom:10px}.sm-padding-x-10{padding-left:10px;padding-right:10px}.sm-margin-15{margin:15px}.sm-margin-top-15{margin-top:15px}.sm-margin-bottom-15{margin-bottom:15px}.sm-margin-left-15{margin-left:15px}.sm-margin-right-15{margin-right:15px}.sm-margin-y-15{margin-top:15px;margin-bottom:15px}.sm-margin-x-15{margin-left:15px;margin-right:15px}.sm-padding-15{padding:15px}.sm-padding-top-15{padding-top:15px}.sm-padding-bottom-15{padding-bottom:15px}.sm-padding-left-15{padding-left:15px}.sm-padding-right-15{padding-right:15px}.sm-padding-y-15{padding-top:15px;padding-bottom:15px}.sm-padding-x-15{padding-left:15px;padding-right:15px}.sm-margin-20{margin:20px}.sm-margin-top-20{margin-top:20px}.sm-margin-bottom-20{margin-bottom:20px}.sm-margin-left-20{margin-left:20px}.sm-margin-right-20{margin-right:20px}.sm-margin-y-20{margin-top:20px;margin-bottom:20px}.sm-margin-x-20{margin-left:20px;margin-right:20px}.sm-padding-20{padding:20px}.sm-padding-top-20{padding-top:20px}.sm-padding-bottom-20{padding-bottom:20px}.sm-padding-left-20{padding-left:20px}.sm-padding-right-20{padding-right:20px}.sm-padding-y-20{padding-top:20px;padding-bottom:20px}.sm-padding-x-20{padding-left:20px;padding-right:20px}.sm-margin-25{margin:25px}.sm-margin-top-25{margin-top:25px}.sm-margin-bottom-25{margin-bottom:25px}.sm-margin-left-25{margin-left:25px}.sm-margin-right-25{margin-right:25px}.sm-margin-y-25{margin-top:25px;margin-bottom:25px}.sm-margin-x-25{margin-left:25px;margin-right:25px}.sm-padding-25{padding:25px}.sm-padding-top-25{padding-top:25px}.sm-padding-bottom-25{padding-bottom:25px}.sm-padding-left-25{padding-left:25px}.sm-padding-right-25{padding-right:25px}.sm-padding-y-25{padding-top:25px;padding-bottom:25px}.sm-padding-x-25{padding-left:25px;padding-right:25px}.sm-margin-30{margin:30px}.sm-margin-top-30{margin-top:30px}.sm-margin-bottom-30{margin-bottom:30px}.sm-margin-left-30{margin-left:30px}.sm-margin-right-30{margin-right:30px}.sm-margin-y-30{margin-top:30px;margin-bottom:30px}.sm-margin-x-30{margin-left:30px;margin-right:30px}.sm-padding-30{padding:30px}.sm-padding-top-30{padding-top:30px}.sm-padding-bottom-30{padding-bottom:30px}.sm-padding-left-30{padding-left:30px}.sm-padding-right-30{padding-right:30px}.sm-padding-y-30{padding-top:30px;padding-bottom:30px}.sm-padding-x-30{padding-left:30px;padding-right:30px}.sm-margin-40{margin:40px}.sm-margin-top-40{margin-top:40px}.sm-margin-bottom-40{margin-bottom:40px}.sm-margin-left-40{margin-left:40px}.sm-margin-right-40{margin-right:40px}.sm-margin-y-40{margin-top:40px;margin-bottom:40px}.sm-margin-x-40{margin-left:40px;margin-right:40px}.sm-padding-40{padding:40px}.sm-padding-top-40{padding-top:40px}.sm-padding-bottom-40{padding-bottom:40px}.sm-padding-left-40{padding-left:40px}.sm-padding-right-40{padding-right:40px}.sm-padding-y-40{padding-top:40px;padding-bottom:40px}.sm-padding-x-40{padding-left:40px;padding-right:40px}.sm-margin-50{margin:50px}.sm-margin-top-50{margin-top:50px}.sm-margin-bottom-50{margin-bottom:50px}.sm-margin-left-50{margin-left:50px}.sm-margin-right-50{margin-right:50px}.sm-margin-y-50{margin-top:50px;margin-bottom:50px}.sm-margin-x-50{margin-left:50px;margin-right:50px}.sm-padding-50{padding:50px}.sm-padding-top-50{padding-top:50px}.sm-padding-bottom-50{padding-bottom:50px}.sm-padding-left-50{padding-left:50px}.sm-padding-right-50{padding-right:50px}.sm-padding-y-50{padding-top:50px;padding-bottom:50px}.sm-padding-x-50{padding-left:50px;padding-right:50px}.sm-margin-100{margin:100px}.sm-margin-top-100{margin-top:100px}.sm-margin-bottom-100{margin-bottom:100px}.sm-margin-left-100{margin-left:100px}.sm-margin-right-100{margin-right:100px}.sm-margin-y-100{margin-top:100px;margin-bottom:100px}.sm-margin-x-100{margin-left:100px;margin-right:100px}.sm-padding-100{padding:100px}.sm-padding-top-100{padding-top:100px}.sm-padding-bottom-100{padding-bottom:100px}.sm-padding-left-100{padding-left:100px}.sm-padding-right-100{padding-right:100px}.sm-padding-y-100{padding-top:100px;padding-bottom:100px}.sm-padding-x-100{padding-left:100px;padding-right:100px}}@media screen and (min-width:768px){.md-block{display:block}.md-inline{display:inline}.md-inline-block{display:inline-block}.md-hide{display:none}.md-margin-0{margin:0}.md-margin-top-0{margin-top:0}.md-margin-bottom-0{margin-bottom:0}.md-margin-left-0{margin-left:0}.md-margin-right-0{margin-right:0}.md-margin-y-0{margin-top:0;margin-bottom:0}.md-margin-x-0{margin-left:0;margin-right:0}.md-padding-0{padding:0}.md-padding-top-0{padding-top:0}.md-padding-bottom-0{padding-bottom:0}.md-padding-left-0{padding-left:0}.md-padding-right-0{padding-right:0}.md-padding-y-0{padding-top:0;padding-bottom:0}.md-padding-x-0{padding-left:0;padding-right:0}.md-margin-5{margin:5px}.md-margin-top-5{margin-top:5px}.md-margin-bottom-5{margin-bottom:5px}.md-margin-left-5{margin-left:5px}.md-margin-right-5{margin-right:5px}.md-margin-y-5{margin-top:5px;margin-bottom:5px}.md-margin-x-5{margin-left:5px;margin-right:5px}.md-padding-5{padding:5px}.md-padding-top-5{padding-top:5px}.md-padding-bottom-5{padding-bottom:5px}.md-padding-left-5{padding-left:5px}.md-padding-right-5{padding-right:5px}.md-padding-y-5{padding-top:5px;padding-bottom:5px}.md-padding-x-5{padding-left:5px;padding-right:5px}.md-margin-10{margin:10px}.md-margin-top-10{margin-top:10px}.md-margin-bottom-10{margin-bottom:10px}.md-margin-left-10{margin-left:10px}.md-margin-right-10{margin-right:10px}.md-margin-y-10{margin-top:10px;margin-bottom:10px}.md-margin-x-10{margin-left:10px;margin-right:10px}.md-padding-10{padding:10px}.md-padding-top-10{padding-top:10px}.md-padding-bottom-10{padding-bottom:10px}.md-padding-left-10{padding-left:10px}.md-padding-right-10{padding-right:10px}.md-padding-y-10{padding-top:10px;padding-bottom:10px}.md-padding-x-10{padding-left:10px;padding-right:10px}.md-margin-15{margin:15px}.md-margin-top-15{margin-top:15px}.md-margin-bottom-15{margin-bottom:15px}.md-margin-left-15{margin-left:15px}.md-margin-right-15{margin-right:15px}.md-margin-y-15{margin-top:15px;margin-bottom:15px}.md-margin-x-15{margin-left:15px;margin-right:15px}.md-padding-15{padding:15px}.md-padding-top-15{padding-top:15px}.md-padding-bottom-15{padding-bottom:15px}.md-padding-left-15{padding-left:15px}.md-padding-right-15{padding-right:15px}.md-padding-y-15{padding-top:15px;padding-bottom:15px}.md-padding-x-15{padding-left:15px;padding-right:15px}.md-margin-20{margin:20px}.md-margin-top-20{margin-top:20px}.md-margin-bottom-20{margin-bottom:20px}.md-margin-left-20{margin-left:20px}.md-margin-right-20{margin-right:20px}.md-margin-y-20{margin-top:20px;margin-bottom:20px}.md-margin-x-20{margin-left:20px;margin-right:20px}.md-padding-20{padding:20px}.md-padding-top-20{padding-top:20px}.md-padding-bottom-20{padding-bottom:20px}.md-padding-left-20{padding-left:20px}.md-padding-right-20{padding-right:20px}.md-padding-y-20{padding-top:20px;padding-bottom:20px}.md-padding-x-20{padding-left:20px;padding-right:20px}.md-margin-25{margin:25px}.md-margin-top-25{margin-top:25px}.md-margin-bottom-25{margin-bottom:25px}.md-margin-left-25{margin-left:25px}.md-margin-right-25{margin-right:25px}.md-margin-y-25{margin-top:25px;margin-bottom:25px}.md-margin-x-25{margin-left:25px;margin-right:25px}.md-padding-25{padding:25px}.md-padding-top-25{padding-top:25px}.md-padding-bottom-25{padding-bottom:25px}.md-padding-left-25{padding-left:25px}.md-padding-right-25{padding-right:25px}.md-padding-y-25{padding-top:25px;padding-bottom:25px}.md-padding-x-25{padding-left:25px;padding-right:25px}.md-margin-30{margin:30px}.md-margin-top-30{margin-top:30px}.md-margin-bottom-30{margin-bottom:30px}.md-margin-left-30{margin-left:30px}.md-margin-right-30{margin-right:30px}.md-margin-y-30{margin-top:30px;margin-bottom:30px}.md-margin-x-30{margin-left:30px;margin-right:30px}.md-padding-30{padding:30px}.md-padding-top-30{padding-top:30px}.md-padding-bottom-30{padding-bottom:30px}.md-padding-left-30{padding-left:30px}.md-padding-right-30{padding-right:30px}.md-padding-y-30{padding-top:30px;padding-bottom:30px}.md-padding-x-30{padding-left:30px;padding-right:30px}.md-margin-40{margin:40px}.md-margin-top-40{margin-top:40px}.md-margin-bottom-40{margin-bottom:40px}.md-margin-left-40{margin-left:40px}.md-margin-right-40{margin-right:40px}.md-margin-y-40{margin-top:40px;margin-bottom:40px}.md-margin-x-40{margin-left:40px;margin-right:40px}.md-padding-40{padding:40px}.md-padding-top-40{padding-top:40px}.md-padding-bottom-40{padding-bottom:40px}.md-padding-left-40{padding-left:40px}.md-padding-right-40{padding-right:40px}.md-padding-y-40{padding-top:40px;padding-bottom:40px}.md-padding-x-40{padding-left:40px;padding-right:40px}.md-margin-50{margin:50px}.md-margin-top-50{margin-top:50px}.md-margin-bottom-50{margin-bottom:50px}.md-margin-left-50{margin-left:50px}.md-margin-right-50{margin-right:50px}.md-margin-y-50{margin-top:50px;margin-bottom:50px}.md-margin-x-50{margin-left:50px;margin-right:50px}.md-padding-50{padding:50px}.md-padding-top-50{padding-top:50px}.md-padding-bottom-50{padding-bottom:50px}.md-padding-left-50{padding-left:50px}.md-padding-right-50{padding-right:50px}.md-padding-y-50{padding-top:50px;padding-bottom:50px}.md-padding-x-50{padding-left:50px;padding-right:50px}.md-margin-100{margin:100px}.md-margin-top-100{margin-top:100px}.md-margin-bottom-100{margin-bottom:100px}.md-margin-left-100{margin-left:100px}.md-margin-right-100{margin-right:100px}.md-margin-y-100{margin-top:100px;margin-bottom:100px}.md-margin-x-100{margin-left:100px;margin-right:100px}.md-padding-100{padding:100px}.md-padding-top-100{padding-top:100px}.md-padding-bottom-100{padding-bottom:100px}.md-padding-left-100{padding-left:100px}.md-padding-right-100{padding-right:100px}.md-padding-y-100{padding-top:100px;padding-bottom:100px}.md-padding-x-100{padding-left:100px;padding-right:100px}}@media screen and (min-width:970px){.lg-block{display:block}.lg-inline{display:inline}.lg-inline-block{display:inline-block}.lg-hide{display:none}.lg-margin-0{margin:0}.lg-margin-top-0{margin-top:0}.lg-margin-bottom-0{margin-bottom:0}.lg-margin-left-0{margin-left:0}.lg-margin-right-0{margin-right:0}.lg-margin-y-0{margin-top:0;margin-bottom:0}.lg-margin-x-0{margin-left:0;margin-right:0}.lg-padding-0{padding:0}.lg-padding-top-0{padding-top:0}.lg-padding-bottom-0{padding-bottom:0}.lg-padding-left-0{padding-left:0}.lg-padding-right-0{padding-right:0}.lg-padding-y-0{padding-top:0;padding-bottom:0}.lg-padding-x-0{padding-left:0;padding-right:0}.lg-margin-5{margin:5px}.lg-margin-top-5{margin-top:5px}.lg-margin-bottom-5{margin-bottom:5px}.lg-margin-left-5{margin-left:5px}.lg-margin-right-5{margin-right:5px}.lg-margin-y-5{margin-top:5px;margin-bottom:5px}.lg-margin-x-5{margin-left:5px;margin-right:5px}.lg-padding-5{padding:5px}.lg-padding-top-5{padding-top:5px}.lg-padding-bottom-5{padding-bottom:5px}.lg-padding-left-5{padding-left:5px}.lg-padding-right-5{padding-right:5px}.lg-padding-y-5{padding-top:5px;padding-bottom:5px}.lg-padding-x-5{padding-left:5px;padding-right:5px}.lg-margin-10{margin:10px}.lg-margin-top-10{margin-top:10px}.lg-margin-bottom-10{margin-bottom:10px}.lg-margin-left-10{margin-left:10px}.lg-margin-right-10{margin-right:10px}.lg-margin-y-10{margin-top:10px;margin-bottom:10px}.lg-margin-x-10{margin-left:10px;margin-right:10px}.lg-padding-10{padding:10px}.lg-padding-top-10{padding-top:10px}.lg-padding-bottom-10{padding-bottom:10px}.lg-padding-left-10{padding-left:10px}.lg-padding-right-10{padding-right:10px}.lg-padding-y-10{padding-top:10px;padding-bottom:10px}.lg-padding-x-10{padding-left:10px;padding-right:10px}.lg-margin-15{margin:15px}.lg-margin-top-15{margin-top:15px}.lg-margin-bottom-15{margin-bottom:15px}.lg-margin-left-15{margin-left:15px}.lg-margin-right-15{margin-right:15px}.lg-margin-y-15{margin-top:15px;margin-bottom:15px}.lg-margin-x-15{margin-left:15px;margin-right:15px}.lg-padding-15{padding:15px}.lg-padding-top-15{padding-top:15px}.lg-padding-bottom-15{padding-bottom:15px}.lg-padding-left-15{padding-left:15px}.lg-padding-right-15{padding-right:15px}.lg-padding-y-15{padding-top:15px;padding-bottom:15px}.lg-padding-x-15{padding-left:15px;padding-right:15px}.lg-margin-20{margin:20px}.lg-margin-top-20{margin-top:20px}.lg-margin-bottom-20{margin-bottom:20px}.lg-margin-left-20{margin-left:20px}.lg-margin-right-20{margin-right:20px}.lg-margin-y-20{margin-top:20px;margin-bottom:20px}.lg-margin-x-20{margin-left:20px;margin-right:20px}.lg-padding-20{padding:20px}.lg-padding-top-20{padding-top:20px}.lg-padding-bottom-20{padding-bottom:20px}.lg-padding-left-20{padding-left:20px}.lg-padding-right-20{padding-right:20px}.lg-padding-y-20{padding-top:20px;padding-bottom:20px}.lg-padding-x-20{padding-left:20px;padding-right:20px}.lg-margin-25{margin:25px}.lg-margin-top-25{margin-top:25px}.lg-margin-bottom-25{margin-bottom:25px}.lg-margin-left-25{margin-left:25px}.lg-margin-right-25{margin-right:25px}.lg-margin-y-25{margin-top:25px;margin-bottom:25px}.lg-margin-x-25{margin-left:25px;margin-right:25px}.lg-padding-25{padding:25px}.lg-padding-top-25{padding-top:25px}.lg-padding-bottom-25{padding-bottom:25px}.lg-padding-left-25{padding-left:25px}.lg-padding-right-25{padding-right:25px}.lg-padding-y-25{padding-top:25px;padding-bottom:25px}.lg-padding-x-25{padding-left:25px;padding-right:25px}.lg-margin-30{margin:30px}.lg-margin-top-30{margin-top:30px}.lg-margin-bottom-30{margin-bottom:30px}.lg-margin-left-30{margin-left:30px}.lg-margin-right-30{margin-right:30px}.lg-margin-y-30{margin-top:30px;margin-bottom:30px}.lg-margin-x-30{margin-left:30px;margin-right:30px}.lg-padding-30{padding:30px}.lg-padding-top-30{padding-top:30px}.lg-padding-bottom-30{padding-bottom:30px}.lg-padding-left-30{padding-left:30px}.lg-padding-right-30{padding-right:30px}.lg-padding-y-30{padding-top:30px;padding-bottom:30px}.lg-padding-x-30{padding-left:30px;padding-right:30px}.lg-margin-40{margin:40px}.lg-margin-top-40{margin-top:40px}.lg-margin-bottom-40{margin-bottom:40px}.lg-margin-left-40{margin-left:40px}.lg-margin-right-40{margin-right:40px}.lg-margin-y-40{margin-top:40px;margin-bottom:40px}.lg-margin-x-40{margin-left:40px;margin-right:40px}.lg-padding-40{padding:40px}.lg-padding-top-40{padding-top:40px}.lg-padding-bottom-40{padding-bottom:40px}.lg-padding-left-40{padding-left:40px}.lg-padding-right-40{padding-right:40px}.lg-padding-y-40{padding-top:40px;padding-bottom:40px}.lg-padding-x-40{padding-left:40px;padding-right:40px}.lg-margin-50{margin:50px}.lg-margin-top-50{margin-top:50px}.lg-margin-bottom-50{margin-bottom:50px}.lg-margin-left-50{margin-left:50px}.lg-margin-right-50{margin-right:50px}.lg-margin-y-50{margin-top:50px;margin-bottom:50px}.lg-margin-x-50{margin-left:50px;margin-right:50px}.lg-padding-50{padding:50px}.lg-padding-top-50{padding-top:50px}.lg-padding-bottom-50{padding-bottom:50px}.lg-padding-left-50{padding-left:50px}.lg-padding-right-50{padding-right:50px}.lg-padding-y-50{padding-top:50px;padding-bottom:50px}.lg-padding-x-50{padding-left:50px;padding-right:50px}.lg-margin-100{margin:100px}.lg-margin-top-100{margin-top:100px}.lg-margin-bottom-100{margin-bottom:100px}.lg-margin-left-100{margin-left:100px}.lg-margin-right-100{margin-right:100px}.lg-margin-y-100{margin-top:100px;margin-bottom:100px}.lg-margin-x-100{margin-left:100px;margin-right:100px}.lg-padding-100{padding:100px}.lg-padding-top-100{padding-top:100px}.lg-padding-bottom-100{padding-bottom:100px}.lg-padding-left-100{padding-left:100px}.lg-padding-right-100{padding-right:100px}.lg-padding-y-100{padding-top:100px;padding-bottom:100px}.lg-padding-x-100{padding-left:100px;padding-right:100px}}@media screen and (min-width:1200px){.xl-block{display:block}.xl-inline{display:inline}.xl-inline-block{display:inline-block}.xl-hide{display:none}.xl-margin-0{margin:0}.xl-margin-top-0{margin-top:0}.xl-margin-bottom-0{margin-bottom:0}.xl-margin-left-0{margin-left:0}.xl-margin-right-0{margin-right:0}.xl-margin-y-0{margin-top:0;margin-bottom:0}.xl-margin-x-0{margin-left:0;margin-right:0}.xl-padding-0{padding:0}.xl-padding-top-0{padding-top:0}.xl-padding-bottom-0{padding-bottom:0}.xl-padding-left-0{padding-left:0}.xl-padding-right-0{padding-right:0}.xl-padding-y-0{padding-top:0;padding-bottom:0}.xl-padding-x-0{padding-left:0;padding-right:0}.xl-margin-5{margin:5px}.xl-margin-top-5{margin-top:5px}.xl-margin-bottom-5{margin-bottom:5px}.xl-margin-left-5{margin-left:5px}.xl-margin-right-5{margin-right:5px}.xl-margin-y-5{margin-top:5px;margin-bottom:5px}.xl-margin-x-5{margin-left:5px;margin-right:5px}.xl-padding-5{padding:5px}.xl-padding-top-5{padding-top:5px}.xl-padding-bottom-5{padding-bottom:5px}.xl-padding-left-5{padding-left:5px}.xl-padding-right-5{padding-right:5px}.xl-padding-y-5{padding-top:5px;padding-bottom:5px}.xl-padding-x-5{padding-left:5px;padding-right:5px}.xl-margin-10{margin:10px}.xl-margin-top-10{margin-top:10px}.xl-margin-bottom-10{margin-bottom:10px}.xl-margin-left-10{margin-left:10px}.xl-margin-right-10{margin-right:10px}.xl-margin-y-10{margin-top:10px;margin-bottom:10px}.xl-margin-x-10{margin-left:10px;margin-right:10px}.xl-padding-10{padding:10px}.xl-padding-top-10{padding-top:10px}.xl-padding-bottom-10{padding-bottom:10px}.xl-padding-left-10{padding-left:10px}.xl-padding-right-10{padding-right:10px}.xl-padding-y-10{padding-top:10px;padding-bottom:10px}.xl-padding-x-10{padding-left:10px;padding-right:10px}.xl-margin-15{margin:15px}.xl-margin-top-15{margin-top:15px}.xl-margin-bottom-15{margin-bottom:15px}.xl-margin-left-15{margin-left:15px}.xl-margin-right-15{margin-right:15px}.xl-margin-y-15{margin-top:15px;margin-bottom:15px}.xl-margin-x-15{margin-left:15px;margin-right:15px}.xl-padding-15{padding:15px}.xl-padding-top-15{padding-top:15px}.xl-padding-bottom-15{padding-bottom:15px}.xl-padding-left-15{padding-left:15px}.xl-padding-right-15{padding-right:15px}.xl-padding-y-15{padding-top:15px;padding-bottom:15px}.xl-padding-x-15{padding-left:15px;padding-right:15px}.xl-margin-20{margin:20px}.xl-margin-top-20{margin-top:20px}.xl-margin-bottom-20{margin-bottom:20px}.xl-margin-left-20{margin-left:20px}.xl-margin-right-20{margin-right:20px}.xl-margin-y-20{margin-top:20px;margin-bottom:20px}.xl-margin-x-20{margin-left:20px;margin-right:20px}.xl-padding-20{padding:20px}.xl-padding-top-20{padding-top:20px}.xl-padding-bottom-20{padding-bottom:20px}.xl-padding-left-20{padding-left:20px}.xl-padding-right-20{padding-right:20px}.xl-padding-y-20{padding-top:20px;padding-bottom:20px}.xl-padding-x-20{padding-left:20px;padding-right:20px}.xl-margin-25{margin:25px}.xl-margin-top-25{margin-top:25px}.xl-margin-bottom-25{margin-bottom:25px}.xl-margin-left-25{margin-left:25px}.xl-margin-right-25{margin-right:25px}.xl-margin-y-25{margin-top:25px;margin-bottom:25px}.xl-margin-x-25{margin-left:25px;margin-right:25px}.xl-padding-25{padding:25px}.xl-padding-top-25{padding-top:25px}.xl-padding-bottom-25{padding-bottom:25px}.xl-padding-left-25{padding-left:25px}.xl-padding-right-25{padding-right:25px}.xl-padding-y-25{padding-top:25px;padding-bottom:25px}.xl-padding-x-25{padding-left:25px;padding-right:25px}.xl-margin-30{margin:30px}.xl-margin-top-30{margin-top:30px}.xl-margin-bottom-30{margin-bottom:30px}.xl-margin-left-30{margin-left:30px}.xl-margin-right-30{margin-right:30px}.xl-margin-y-30{margin-top:30px;margin-bottom:30px}.xl-margin-x-30{margin-left:30px;margin-right:30px}.xl-padding-30{padding:30px}.xl-padding-top-30{padding-top:30px}.xl-padding-bottom-30{padding-bottom:30px}.xl-padding-left-30{padding-left:30px}.xl-padding-right-30{padding-right:30px}.xl-padding-y-30{padding-top:30px;padding-bottom:30px}.xl-padding-x-30{padding-left:30px;padding-right:30px}.xl-margin-40{margin:40px}.xl-margin-top-40{margin-top:40px}.xl-margin-bottom-40{margin-bottom:40px}.xl-margin-left-40{margin-left:40px}.xl-margin-right-40{margin-right:40px}.xl-margin-y-40{margin-top:40px;margin-bottom:40px}.xl-margin-x-40{margin-left:40px;margin-right:40px}.xl-padding-40{padding:40px}.xl-padding-top-40{padding-top:40px}.xl-padding-bottom-40{padding-bottom:40px}.xl-padding-left-40{padding-left:40px}.xl-padding-right-40{padding-right:40px}.xl-padding-y-40{padding-top:40px;padding-bottom:40px}.xl-padding-x-40{padding-left:40px;padding-right:40px}.xl-margin-50{margin:50px}.xl-margin-top-50{margin-top:50px}.xl-margin-bottom-50{margin-bottom:50px}.xl-margin-left-50{margin-left:50px}.xl-margin-right-50{margin-right:50px}.xl-margin-y-50{margin-top:50px;margin-bottom:50px}.xl-margin-x-50{margin-left:50px;margin-right:50px}.xl-padding-50{padding:50px}.xl-padding-top-50{padding-top:50px}.xl-padding-bottom-50{padding-bottom:50px}.xl-padding-left-50{padding-left:50px}.xl-padding-right-50{padding-right:50px}.xl-padding-y-50{padding-top:50px;padding-bottom:50px}.xl-padding-x-50{padding-left:50px;padding-right:50px}.xl-margin-100{margin:100px}.xl-margin-top-100{margin-top:100px}.xl-margin-bottom-100{margin-bottom:100px}.xl-margin-left-100{margin-left:100px}.xl-margin-right-100{margin-right:100px}.xl-margin-y-100{margin-top:100px;margin-bottom:100px}.xl-margin-x-100{margin-left:100px;margin-right:100px}.xl-padding-100{padding:100px}.xl-padding-top-100{padding-top:100px}.xl-padding-bottom-100{padding-bottom:100px}.xl-padding-left-100{padding-left:100px}.xl-padding-right-100{padding-right:100px}.xl-padding-y-100{padding-top:100px;padding-bottom:100px}.xl-padding-x-100{padding-left:100px;padding-right:100px}} \ No newline at end of file diff --git a/images/screenshots/v1.1/extension-window.PNG b/images/screenshots/v1.1/extension-window.PNG new file mode 100644 index 00000000..2356ac6f Binary files /dev/null and b/images/screenshots/v1.1/extension-window.PNG differ diff --git a/js/DomManipulator.js b/js/DomManipulator.js index 5504a5c7..d65b7998 100644 --- a/js/DomManipulator.js +++ b/js/DomManipulator.js @@ -1,9 +1,54 @@ class EtherAddressLookup { - constructor() {} + constructor() + { + this.setDefaultExtensionSettings(); + this.init(); + } + + setDefaultExtensionSettings() + { + this.blHighlight = false; + this.intSettingsCount = 0; + this.intSettingsTotalCount = 1; + } + + //Gets extension settings and then converts addresses to links + init() + { + chrome.runtime.sendMessage({func: "highlight_option"}, function(objResponse) { + console.log(objResponse); + if(objResponse && objResponse.hasOwnProperty("resp")) { + this.blHighlight = (objResponse.resp == 1 ? true : false); + } + ++this.intSettingsCount; + }.bind(this)); + + //Update the DOM once all settings have been received... + setTimeout(function() { + console.log("Settings:" + this.intSettingsCount); + console.log("Total: "+ this.intSettingsTotalCount); + if(this.intSettingsCount === this.intSettingsTotalCount) { + this.convertAddressToLink(); + } + }.bind(this), 500) + } + + //Finds Ethereum addresses and converts to a link to a block explorer + convertAddressToLink() + { + document.body.innerHTML = document.body.innerHTML.replace( + new RegExp("(?!.*\")(0[xX][0-9a-fA-F]{40})(?!\")(!?<\s|\<|$)", "g"), + `$1$2` + ); + if(this.blHighlight) { + this.addHighlightStyle(); + } + } //Removes the highlight style - removeHighlightStyle() { + removeHighlightStyle() + { var objEtherAddresses = document.getElementsByClassName("ext-etheraddresslookup-link"); for (var i = 0; i < objEtherAddresses.length; i++) { objEtherAddresses[i].classList.add("ext-etheraddresslookup-link-no_highlight"); @@ -13,7 +58,8 @@ class EtherAddressLookup { } //Adds the highlight style - addHighlightStyle() { + addHighlightStyle() + { var objEtherAddresses = document.getElementsByClassName("ext-etheraddresslookup-link"); for (var i = 0; i < objEtherAddresses.length; i++) { objEtherAddresses[i].classList.add("ext-etheraddresslookup-link-highlight"); @@ -23,12 +69,12 @@ class EtherAddressLookup { } } +let objEtherAddressLookup = new EtherAddressLookup(); + //Send message from the extension to here. chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { - console.log(request); if(typeof request.func !== "undefined") { - let objEtherAddressLookup = new EtherAddressLookup(); if(typeof objEtherAddressLookup[request.func] == "function") { objEtherAddressLookup[request.func](); sendResponse({status: "ok"}); diff --git a/js/addLinkToEtherAddress.js b/js/addLinkToEtherAddress.js deleted file mode 100644 index d2843c66..00000000 --- a/js/addLinkToEtherAddress.js +++ /dev/null @@ -1,6 +0,0 @@ -(function() { - document.body.innerHTML = document.body.innerHTML.replace( - new RegExp("(?!.*\")(0[xX][0-9a-fA-F]{40})(?!\")(!?<\s|\<|$)", "g"), - `$1$2` - ); -})(); \ No newline at end of file diff --git a/js/options.js b/js/options.js index 7acac633..8dd36aaf 100644 --- a/js/options.js +++ b/js/options.js @@ -1,3 +1,34 @@ (function() { - document.getElementById('ext-etheraddresslookup-show_style').addEventListener('click', toggleMatchHighlight); -})(); \ No newline at end of file + //Toggle the highlight option and set it in LocalStorage + var objOptionAddHighlight = document.getElementById('ext-etheraddresslookup-show_style'); + if(objOptionAddHighlight) { + objOptionAddHighlight.addEventListener('click', toggleMatchHighlight); + } + + //Get the extension version + var objManifest = chrome.runtime.getManifest(); + var objManifestVersion = document.getElementById('ext-manifest_version'); + if(objManifestVersion) { + objManifestVersion.innerHTML = objManifest.version; + } +})(); + +chrome.runtime.onMessage.addListener( + function(request, sender, sendResponse) { + var strOption = request.func; + var strResponse = ""; + + console.log(request); + + switch(strOption) { + case 'highlight_option' : + strResponse = localStorage.getItem("ext-etheraddresslookup-show_style"); + break; + default: + strResponse = "unsupported"; + break; + } + + sendResponse({resp:strResponse}); + } +); \ No newline at end of file diff --git a/js/toggleMatchHighlight.js b/js/toggleMatchHighlight.js index 40bab721..64a4c77c 100644 --- a/js/toggleMatchHighlight.js +++ b/js/toggleMatchHighlight.js @@ -18,7 +18,6 @@ function refreshHighlightOption() { //Notify the tab to do a class method var strMethod = (intShowHighlight == 1 ? "addHighlightStyle" : "removeHighlightStyle"); chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { - //Construct & send message chrome.tabs.sendMessage(tabs[0].id, { "func":strMethod }, function(response) { diff --git a/manifest.json b/manifest.json index fa431ec8..6f89a963 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "EtherAddressLookup", "description": "Adds links to strings that look like Ethereum addresses to etherscan.", - "version": "1.0", + "version": "1.1", "browser_action": { "default_icon": "images/eth.png", @@ -19,7 +19,7 @@ "content_scripts":[{ "run_at": "document_end", "matches": ["http://*/*", "https://*/*"], - "js": ["js/addLinkToEtherAddress.js", "js/DomManipulator.js"], + "js": ["js/DomManipulator.js"], "css": ["css/app.css"] }], diff --git a/options.html b/options.html index 21ca8069..1c0c9166 100644 --- a/options.html +++ b/options.html @@ -3,25 +3,23 @@