Advertisement
Guest User

clicktester.html

a guest
Feb 27th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 16.69 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en" ng-app="mcrpgApp">
  3.  
  4. <head>
  5.  
  6.  
  7.     <meta charset="utf-8">
  8.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9.     <meta name="viewport" content="width=device-width, initial-scale=1">
  10.     <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  11.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  12.     <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  13.     <title>Verendus Network | Player Portal</title>
  14.  
  15.  
  16.     <link href="Content/css3a9e.css?v=DavidCPlaysMC" rel="stylesheet"/>
  17.  
  18.  
  19.     <link href="content/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  20.     <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
  21.  
  22.     <script type="text/javascript">
  23.         _atrk_opts = { atrk_acct:"4bxin1a4KM10WR", domain:"mcrpg.com",dynamic: true};
  24.         (function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "../d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })();
  25.     </script>
  26.     <noscript><img src="../d5nxst8fruw4z.cloudfront.net/atrk0312.gif?account=4bxin1a4KM10WR" style="display:none" height="1" width="1" alt="" /></noscript>
  27.     <script src="http://load.sumome.com/" data-sumo-site-id="f664151057ddae0364e7c76bdda59d0c2c8236502f3d5732609d6e7476bedaaa" async="async"></script>
  28. </head>
  29. <body>
  30. <nav class="navbar navbar-default navbar-fixed-top">
  31.     <div class="container">
  32.         <div class="navbar-header">
  33.             <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav">
  34.                 <span class="icon-bar"></span>
  35.                 <span class="icon-bar"></span>
  36.                 <span class="icon-bar"></span>
  37.             </button>
  38.             <a class="navbar-brand" href="http://www.verendus.net/module001/ajax/playerportal">Verendus Network</a>
  39.         </div>
  40.         <div class="collapse navbar-collapse" id="nav">
  41.             <ul class="nav navbar-nav">
  42.                 <li><a href="http://www.verendus.net"><span class='glyphicon glyphicon-home'></span> Home</a></li>
  43.                 <li class="dropdown">
  44.                     <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class='glyphicon glyphicon-stats'></span> Stats<span class="caret"></span></a>
  45.                     <ul class="dropdown-menu">
  46.                         <li><a href="http://www.codecpvp.com/practicestats">Practice</a></li>
  47.                         <li><a href="http://www.codecpvp.com/factionsstats">Factions 1</a></li>
  48.                     </ul>
  49.                 </li>
  50.                 <li class="dropdown">
  51.                 <li><a href="clicktester.html"><span class='glyphicon glyphicon-leaf'></span> CPS Tester</a></li>
  52.                 <li><a href="#"><span class='glyphicon glyphicon-leaf'></span> Under Construction</a></li>
  53.                 </li>
  54.                 <li class="dropdown">
  55.                     <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class='glyphicon glyphicon-inbox'></span> Community<span class="caret"></span></a>
  56.                     <ul class="dropdown-menu">
  57.                         <li><a href="http://www.verendus.net/module004/php/community"><span class='glyphicon glyphicon-comment'></span> Forums</a></li>
  58.                         <li><a href="https://twitter.com/VerendusOfficial"><span class='glyphicon glyphicon-thumbs-up'></span> Twitter</a></li>
  59.                     </ul>
  60.                 </li>
  61.             </ul>
  62.             <ul class="nav navbar-nav navbar-right">
  63.         </div>
  64.     </div>
  65.     </form>
  66.     </ul>
  67.     </div>
  68.     </div>
  69. </nav>
  70.  
  71.  
  72.  
  73.  
  74.  
  75. <div class="container" style="margin-top: 50px; min-height:100%;" ng-controller="clickTestController">
  76.  
  77.  
  78.  
  79.  
  80.     <div class="row">
  81.         <div class="col-md-8">
  82.             <h1>Verendus Network Module 001-05</h1>
  83.             <p class="lead">10 Second Clicks Per Second Test</p>
  84.  
  85.  
  86.         </div>
  87.         <div class="col-md-4 text-right">
  88.         </div>
  89.     </div>
  90.  
  91.     <h3 ng-hide="testDone">Clicks: {{clickCount}}</h3>
  92.     <h3 ng-show="testDone">Results: <span id="cps">{{cps | number: 1}}</span> CPS <span id="twtbox"></span></h3>
  93.  
  94.     <button ng-show="testDone" class="btn btn-default" ng-click="reset()">Restart Test</button>
  95.     <button ng-hide="testDone" class="btn btn-default" style="height: 200px; width: 100%" ng-click="buttonClick()">Click Here</button>
  96.     <h4 ng-show="testRunning">{{timeElapsed | number:2}}</h4>
  97.     <br />
  98.     <br />
  99.     <hr />
  100.     <br />
  101.     <br />
  102.  
  103. </div>
  104.  
  105.  
  106.  
  107. <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
  108. <script src="content/js/bootstrap.min.js"></script>
  109. <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>
  110. <script type="text/javascript">
  111.     var app = angular.module('mcrpgApp', []);
  112. </script>
  113.  
  114.  
  115.  
  116.  
  117. <script>window.twttr = function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+':http://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
  118. <script type="text/javascript">
  119.  
  120.     app.controller('clickTestController', function ($scope, $http) {
  121.         $scope.clickCount = 0;
  122.         $scope.testDone = false;
  123.         $scope.testRunning = false;
  124.         $scope.timeElapsed = 0;
  125.  
  126.         $scope.buttonClick = function () {
  127.             if (!$scope.testRunning) {
  128.                 $scope.start();
  129.             }
  130.             else
  131.                 $scope.clickCount++;
  132.         }
  133.  
  134.         $scope.start = function () {
  135.             $scope.started = new Date().getTime();
  136.             $scope.testRunning = true;
  137.  
  138.             $scope.timerID = setInterval(function () {
  139.                 $scope.$apply(function () {
  140.                     $scope.timeElapsed = (new Date().getTime() - $scope.started) / 1000.0;
  141.  
  142.                     if ($scope.timeElapsed >= 10)
  143.                         $scope.stop();
  144.                 });
  145.             }, 10);
  146.         };
  147.  
  148.         $scope.stop = function () {
  149.             $scope.testRunning = false;
  150.             $scope.testDone = true;
  151.             $scope.cps = $scope.clickCount / 10;
  152.             clearInterval($scope.timerID);
  153.  
  154.             setTimeout(function () {
  155.                 createButton();
  156.  
  157.             }, 100);
  158.         }
  159.  
  160.         $scope.reset = function () {
  161.             $scope.testRunning = false;
  162.             $scope.testDone = false;
  163.             $scope.clickCount = 0;
  164.             $scope.timeElapsed = 0;
  165.         };
  166.     });
  167.  
  168.     function createButton() {
  169.  
  170.  
  171.         tweetdiv = document.getElementById('twtbox');
  172.         tweetdiv.innerHTML = "";
  173.  
  174.         var elem = document.getElementById('twitterbutton');
  175.         if (elem != null) {
  176.             elem.parentNode.removeChild(elem);
  177.         }
  178.  
  179.         var link = document.createElement('a');
  180.         link.setAttribute('href', 'https://twitter.com/share');
  181.         link.setAttribute('class', 'twitter-share-button');
  182.         link.setAttribute('style', 'margin-top:5px;');
  183.         link.setAttribute('id', 'twitterbutton');
  184.         link.setAttribute("data-text", "I just got " + document.getElementById("cps").innerText + " CPS On The Verendus Network Player Portal");
  185.         link.setAttribute("data-via", "mcrpg_");
  186.         link.setAttribute("data-size", "large");
  187.         tweetdiv.appendChild(link);
  188.  
  189.         twttr.widgets.load();
  190.     }
  191. </script>
  192.  
  193.  
  194. <script type="text/javascript">
  195.     (function(){function pw_load(){
  196.         if(arguments.callee.z)return;else arguments.callee.z=true;
  197.         var d=document;var s=d.createElement('script');
  198.         var x=d.getElementsByTagName('script')[0];
  199.         s.type='text/javascript';s.async=true;
  200.         s.src='/www.projectwonderful.com/pwa.js';
  201.         x.parentNode.insertBefore(s,x);}
  202.         if (window.attachEvent){
  203.             window.attachEvent('DOMContentLoaded',pw_load);
  204.             window.attachEvent('onload',pw_load);}
  205.         else{
  206.             window.addEventListener('DOMContentLoaded',pw_load,false);
  207.             window.addEventListener('load',pw_load,false);}})();
  208. </script>
  209.  
  210. </body>
  211.  
  212. </html>
  213.  
  214. <!DOCTYPE html>
  215. <html lang="en" ng-app="mcrpgApp">
  216.  
  217. <head>
  218.  
  219.  
  220.     <meta charset="utf-8">
  221.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  222.     <meta name="viewport" content="width=device-width, initial-scale=1">
  223.     <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  224.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  225.     <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  226.     <title>Verendus Network | Player Portal</title>
  227.  
  228.  
  229.     <link href="Content/css3a9e.css?v=DavidCPlaysMC" rel="stylesheet"/>
  230.  
  231.  
  232.     <link href="content/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  233.     <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
  234.  
  235.     <script type="text/javascript">
  236.         _atrk_opts = { atrk_acct:"4bxin1a4KM10WR", domain:"mcrpg.com",dynamic: true};
  237.         (function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "../d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })();
  238.     </script>
  239.     <noscript><img src="../d5nxst8fruw4z.cloudfront.net/atrk0312.gif?account=4bxin1a4KM10WR" style="display:none" height="1" width="1" alt="" /></noscript>
  240.     <script src="http://load.sumome.com/" data-sumo-site-id="f664151057ddae0364e7c76bdda59d0c2c8236502f3d5732609d6e7476bedaaa" async="async"></script>
  241. </head>
  242. <body>
  243. <nav class="navbar navbar-default navbar-fixed-top">
  244.     <div class="container">
  245.         <div class="navbar-header">
  246.             <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav">
  247.                 <span class="icon-bar"></span>
  248.                 <span class="icon-bar"></span>
  249.                 <span class="icon-bar"></span>
  250.             </button>
  251.             <a class="navbar-brand" href="http://www.verendus.net/module001/ajax/playerportal">Verendus Network</a>
  252.         </div>
  253.         <div class="collapse navbar-collapse" id="nav">
  254.             <ul class="nav navbar-nav">
  255.                 <li><a href="http://www.verendus.net"><span class='glyphicon glyphicon-home'></span> Home</a></li>
  256.                 <li class="dropdown">
  257.                     <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class='glyphicon glyphicon-stats'></span> Stats<span class="caret"></span></a>
  258.                     <ul class="dropdown-menu">
  259.                         <li><a href="http://www.codecpvp.com/practicestats">Practice</a></li>
  260.                         <li><a href="http://www.codecpvp.com/factionsstats">Factions 1</a></li>
  261.                     </ul>
  262.                 </li>
  263.                 <li class="dropdown">
  264.                 <li><a href="clicktester.html"><span class='glyphicon glyphicon-leaf'></span> CPS Tester</a></li>
  265.                 <li><a href="#"><span class='glyphicon glyphicon-leaf'></span> Under Construction</a></li>
  266.                 </li>
  267.                 <li class="dropdown">
  268.                     <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class='glyphicon glyphicon-inbox'></span> Community<span class="caret"></span></a>
  269.                     <ul class="dropdown-menu">
  270.                         <li><a href="http://www.verendus.net/module004/php/community"><span class='glyphicon glyphicon-comment'></span> Forums</a></li>
  271.                         <li><a href="https://twitter.com/VerendusOfficial"><span class='glyphicon glyphicon-thumbs-up'></span> Twitter</a></li>
  272.                     </ul>
  273.                 </li>
  274.             </ul>
  275.             <ul class="nav navbar-nav navbar-right">
  276.         </div>
  277.     </div>
  278.     </form>
  279.     </ul>
  280.     </div>
  281.     </div>
  282. </nav>
  283.  
  284.  
  285.  
  286.  
  287.  
  288. <div class="container" style="margin-top: 50px; min-height:100%;" ng-controller="clickTestController">
  289.  
  290.  
  291.  
  292.  
  293.     <div class="row">
  294.         <div class="col-md-8">
  295.             <h1>Verendus Network Module 001-05</h1>
  296.             <p class="lead">10 Second Clicks Per Second Test</p>
  297.  
  298.  
  299.         </div>
  300.         <div class="col-md-4 text-right">
  301.         </div>
  302.     </div>
  303.  
  304.     <h3 ng-hide="testDone">Clicks: {{clickCount}}</h3>
  305.     <h3 ng-show="testDone">Results: <span id="cps">{{cps | number: 1}}</span> CPS <span id="twtbox"></span></h3>
  306.  
  307.     <button ng-show="testDone" class="btn btn-default" ng-click="reset()">Restart Test</button>
  308.     <button ng-hide="testDone" class="btn btn-default" style="height: 200px; width: 100%" ng-click="buttonClick()">Click Here</button>
  309.     <h4 ng-show="testRunning">{{timeElapsed | number:2}}</h4>
  310.     <br />
  311.     <br />
  312.     <hr />
  313.     <br />
  314.     <br />
  315.  
  316. </div>
  317.  
  318.  
  319.  
  320. <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
  321. <script src="content/js/bootstrap.min.js"></script>
  322. <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>
  323. <script type="text/javascript">
  324.     var app = angular.module('mcrpgApp', []);
  325. </script>
  326.  
  327.  
  328.  
  329.  
  330. <script>window.twttr = function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+':http://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
  331. <script type="text/javascript">
  332.  
  333.     app.controller('clickTestController', function ($scope, $http) {
  334.         $scope.clickCount = 0;
  335.         $scope.testDone = false;
  336.         $scope.testRunning = false;
  337.         $scope.timeElapsed = 0;
  338.  
  339.         $scope.buttonClick = function () {
  340.             if (!$scope.testRunning) {
  341.                 $scope.start();
  342.             }
  343.             else
  344.                 $scope.clickCount++;
  345.         }
  346.  
  347.         $scope.start = function () {
  348.             $scope.started = new Date().getTime();
  349.             $scope.testRunning = true;
  350.  
  351.             $scope.timerID = setInterval(function () {
  352.                 $scope.$apply(function () {
  353.                     $scope.timeElapsed = (new Date().getTime() - $scope.started) / 1000.0;
  354.  
  355.                     if ($scope.timeElapsed >= 10)
  356.                         $scope.stop();
  357.                 });
  358.             }, 10);
  359.         };
  360.  
  361.         $scope.stop = function () {
  362.             $scope.testRunning = false;
  363.             $scope.testDone = true;
  364.             $scope.cps = $scope.clickCount / 10;
  365.             clearInterval($scope.timerID);
  366.  
  367.             setTimeout(function () {
  368.                 createButton();
  369.  
  370.             }, 100);
  371.         }
  372.  
  373.         $scope.reset = function () {
  374.             $scope.testRunning = false;
  375.             $scope.testDone = false;
  376.             $scope.clickCount = 0;
  377.             $scope.timeElapsed = 0;
  378.         };
  379.     });
  380.  
  381.     function createButton() {
  382.  
  383.  
  384.         tweetdiv = document.getElementById('twtbox');
  385.         tweetdiv.innerHTML = "";
  386.  
  387.         var elem = document.getElementById('twitterbutton');
  388.         if (elem != null) {
  389.             elem.parentNode.removeChild(elem);
  390.         }
  391.  
  392.         var link = document.createElement('a');
  393.         link.setAttribute('href', 'https://twitter.com/share');
  394.         link.setAttribute('class', 'twitter-share-button');
  395.         link.setAttribute('style', 'margin-top:5px;');
  396.         link.setAttribute('id', 'twitterbutton');
  397.         link.setAttribute("data-text", "I just got " + document.getElementById("cps").innerText + " CPS On The Verendus Network Player Portal");
  398.         link.setAttribute("data-via", "mcrpg_");
  399.         link.setAttribute("data-size", "large");
  400.         tweetdiv.appendChild(link);
  401.  
  402.         twttr.widgets.load();
  403.     }
  404. </script>
  405.  
  406.  
  407. <script type="text/javascript">
  408.     (function(){function pw_load(){
  409.         if(arguments.callee.z)return;else arguments.callee.z=true;
  410.         var d=document;var s=d.createElement('script');
  411.         var x=d.getElementsByTagName('script')[0];
  412.         s.type='text/javascript';s.async=true;
  413.         s.src='/www.projectwonderful.com/pwa.js';
  414.         x.parentNode.insertBefore(s,x);}
  415.         if (window.attachEvent){
  416.             window.attachEvent('DOMContentLoaded',pw_load);
  417.             window.attachEvent('onload',pw_load);}
  418.         else{
  419.             window.addEventListener('DOMContentLoaded',pw_load,false);
  420.             window.addEventListener('load',pw_load,false);}})();
  421. </script>
  422.  
  423. </body>
  424.  
  425. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement