Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.47 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="../styles/digi/theme/stylesheet.css" type="text/css" />
  5. <link rel="icon" type="image/png" href="/harmedore/pics/trahaearn.png" />
  6. <script>
  7. var sessionid = "1487530117";
  8. var name = "Template";
  9. var forumid = "49";
  10. var rank = "2";
  11. var color = "#D52000";
  12. var bgcolor = "#CEEE6S";
  13. </script>
  14. <link rel="stylesheet" href="HOcss3.css?version=53" type="text/css" />
  15. <link rel="stylesheet" href="generalobjects.css?version=53" type="text/css" />
  16. <script src="http://code.jquery.com/jquery-latest.min.js"></script>
  17. <script src = "js/colResizable.js"></script>
  18. <script src = "analyzecall.js?version=53"></script>
  19. <script src = "publicpagejs.js?version=53"></script>
  20. <script src = "mainpagejs.js?version=53"></script>
  21. <title>Harmed Ore</title>
  22. </head>
  23.  
  24. <body>
  25. <div id = "menu">
  26. <button class = 'menubutton' onclick = "leaveChat('Logged out', 0)"><img src = 'pics/signout.png' height = '20' width = '20' title="Log out"/></button><br/>
  27. <button class = 'menubutton' onclick = "goToMeeting()"><img src = 'pics/meeting.png' height = '20' width = '20' title = "Last meeting notes"/></button><br/>
  28. <button class = 'menubutton' onclick = "goToForum()"><img src = 'pics/forum.png' height = '20' width = '20' title = "Harmed ore forum"/></button><br/>
  29. </div>
  30. <div id = "container">
  31. <div id="inhoud">
  32.  
  33.  
  34. <table style = "float:left" class = "oretable" style = "border: 1px solid teal;">
  35. <tr>
  36. <th colspan = "8">Select what columns to see</th>
  37. </tr>
  38. <tr>
  39. <td><b>All Relay:</b></td><td><input type = "checkbox" id = "relayCheck" onclick = "activateRelay();"></td>
  40. <td><b>Other:</b></td><td><input type = "checkbox" id = "randomCheck" onclick = "activateRandom();"></td>
  41. <td><b>All Scout:</b></td><td><input type = "checkbox" id = "scoutCheck" onclick = "activateScout();"></td>
  42. <td><b>Statistics:</b></td><td><input type = "checkbox" id = "statsCheck" onclick = "activateStats();"></td>
  43. </tr>
  44. <tr>
  45. <td>Rune:</td><td> <input type = "checkbox" id = "1Check" onclick = "columnClick(1);"></td>
  46. <td>Unh:</td><td> <input type = "checkbox" id = "5Check" onclick = "columnClick(5);"></td>
  47. <td>Worlds 1-32:</td><td> <input type = "checkbox" id = "8Check" onclick = "columnClick(8);"></td>
  48. <td></td><td></td>
  49. </tr>
  50. <tr>
  51. <td>Addy:</td><td> <input type = "checkbox" id = "2Check" onclick = "columnClick(2);"></td>
  52. <td>Mined:</td><td> <input type = "checkbox" id = "6Check" onclick = "columnClick(6);"></td>
  53. <td>Worlds 35-64:</td><td> <input type = "checkbox" id = "9Check" onclick = "columnClick(9);"></td>
  54. <td>Scouters:</td><td> <input type = "checkbox" id = "13Check" onclick = "columnClick(13);"></td>
  55. </tr>
  56. <tr>
  57. <td>Mith:</td><td> <input type = "checkbox" id = "3Check" onclick = "columnClick(3);"></td>
  58. <td>Uncalled:</td><td> <input type = "checkbox" id = "7Check" onclick = "columnClick(7);"></td>
  59. <td>Worlds 65-91:</td><td> <input type = "checkbox" id = "10Check" onclick = "columnClick(10);"></td>
  60. <td>Relayers:</td><td> <input type = "checkbox" id = "14Check" onclick = "columnClick(14);"></td>
  61.  
  62. </tr>
  63. <tr>
  64. <td>Coal:</td><td> <input type = "checkbox" id = "4Check" onclick = "columnClick(4);"></td>
  65. <td>Harmed:</td><td><input type = "checkbox" id = "12Check" onclick = "columnClick(12)"></td>
  66. <td>Worlds 92-140:</td><td> <input type = "checkbox" id = "11Check" onclick = "columnClick(11);"></td>
  67. <td></td><td></td>
  68. </tr>
  69. </table>
  70.  
  71. <table width = "450" style = "float:left">
  72. <tr>
  73. <td rowspan = "2" width = "85" height = "100">
  74. <div id = "firstvoice" align = "center">
  75. </div>
  76. </td>
  77. <td colspan = "2" width = "370">
  78. <div id = "headimg">
  79. <img src = "http://puu.sh/hOcao.png">
  80. </div>
  81. </td>
  82. <td rowspan = "2" width = "85" >
  83. <div id = "secondvoice" align = "center">
  84. </div>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td align = "center">
  89. Last Trah Ended:
  90. <div id = "lasttrah">
  91. </div>
  92. </td>
  93. <td align = "center">
  94. Voices of next hour:
  95. <div id = "nextvoices">
  96. </div>
  97. </td>
  98. </tr>
  99. </table>
  100.  
  101. <div class = "tabs" style = "clear:left">
  102. <div class = "tab-content">
  103. <div id = "relaytable" class = "tab active">
  104. <table border = "1" class = "oretable" id = "realoretable">
  105. <tr>
  106. </tr >
  107. <tr>
  108. </tr>
  109. </table>
  110. </div>
  111. <div id = "scouttable" class = "tab">
  112.  
  113. </div>
  114. </div>
  115. </div>
  116. <table style="float:left;" border = "1" width = "600" class = "oretable">
  117. <tr>
  118. <td>
  119. <div id = "chatwindow">
  120. </div>
  121. </td>
  122. <td valign = "top" width = "150">
  123. <div id = "peepsinchat">
  124. </div>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td colspan = "2">
  129. Template
  130. <input type = "text" id = "chat" size = "50" maxlength="100">
  131. <button onclick = "submit()">Submit</button>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td colspan = "2">
  136. <div>
  137. <div id = 'errorlog'>
  138. </div>
  139. Current fc:
  140. <button class = "buttonup" id = "h0button" onclick = "setfc(this)">h0</button>
  141. <button class = "buttonup" id = "h1button" onclick = "setfc(this)">h1</button>
  142. <button class = "buttonup" id = "h2button" onclick = "setfc(this)">h2</button>
  143. <button class = "buttonup" id = "h3button" onclick = "setfc(this)">h3</button>
  144. <button class = "buttonup" id = "h4button" onclick = "setfc(this)">h4</button>
  145. <button class = "buttonup" id = "h5button" onclick = "setfc(this)">none</button><br/>
  146. Current activity:
  147. <button class = "buttonup" id = "h7button" onclick = "setaction(this)">relay</button>
  148. <button class = "buttonup" id = "h8button" onclick = "setaction(this)">scout</button>
  149. <button class = "buttonup" id = "h9button" onclick = "setaction(this)">both</button>
  150. <button class = "buttonup" id = "h10button" onclick = "setaction(this)">mining</button>
  151. <button class = "buttonup" id = "h11button" onclick = "setaction(this)">away</button>
  152. <button class = "buttonup" id = "h12button" onclick = "setaction(this)">nothing</button><br/>
  153. <table>
  154. <tr>
  155. <th colspan = "2">Give rank</th>
  156. <th colspan = "2">Give color</th>
  157. <th colspan = "2">Check prif access</th>
  158. </tr>
  159. <tr>
  160. <td>Name:</td>
  161. <td><input type = "text" id = "giverankname" maxlength = "12" size = "10"/></td>
  162. <td>Name:</td>
  163. <td><input type = "text" id = "colorname" maxlength = "12" size = "10"/></td>
  164. <td>Rs Name:</td>
  165. <td><input type = "text" id = "checkprifname" maxlength = "12" size = "10"/></td>
  166. </tr>
  167. <tr>
  168. <td>
  169. Rank:
  170. </td>
  171. <td>
  172. <select id = "chosenrank" name = "ranks" style = "width: 100;">
  173. <option value = "1">General (gold)</option>
  174. <option value = "2">Captain (silver)</option>
  175. <option value = "3">Lieutenant(bronze)</option>
  176. <option value = "4">Sergeant (3 stripes)</option>
  177. <option value = "5">Corporal (2 stripes)</option>
  178. <option value = "6">Recruit (1 stripe)</option>
  179. <option value = "7">Smiley</option>
  180. <option value = "8">Ban</option>
  181. </select>
  182. </td>
  183. <td>
  184. Color:
  185. </td>
  186. <td>
  187. <input type="color" id="colorpicker" name="color" value="#ff0000" /> <input id="hexcolor" maxlength = "7" size = "3"/></div>
  188. </td>
  189. <td colspan = "2">
  190. <button value = "Check Prif Access" onclick = "checkprifaccess()" style="display: block; width: 100%;">Check Prif Access</button>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td colspan = "2">
  195. <button value = "Give rank" onclick = "giverank()" style="display: block; width: 100%;"/>Give rank</button>
  196. </td>
  197. <td colspan = "2">
  198. <button value = "Give color" onclick = "givecolor()" style="display: block; width: 100%;"/>Give color</button>
  199. </td>
  200. <td colspan = "2">
  201. <div id = "prifaccessresult" style = "
  202. width: 100%;
  203. height: 50px;
  204. overflow: auto;
  205. font-size: 12px"></div>
  206. </td>
  207. </tr>
  208. </table>
  209. </div>
  210. </td>
  211. </tr>
  212. </table>
  213. <table style = "display: inline-block;" class = "oretable" border = "1">
  214. <tr>
  215. <th colspan = "3">
  216. <b>Statistics of last/current Trah</b><br>
  217. </th>
  218. </tr>
  219. <tr>
  220. <td width = "33%" >
  221. <b>Worlds total</b>
  222. </td>
  223. <td>
  224. <b>Scouted</b>
  225. </td>
  226. <td>
  227. <b>Relayed</b>
  228. </td>
  229. </tr>
  230. <tr>
  231. <td width = "33%">
  232. <div id = "worldstotal"></div>
  233. </td>
  234. <td>
  235. <div id = "worldsscouted"></div>
  236. </td>
  237. <td>
  238. <div id = "worldsrelayed"></div>
  239. </td>
  240. </tr>
  241.  
  242. <tr>
  243. <td>
  244. <b>#Harmed</b>
  245. </td>
  246. <td>
  247. <b>#Unharmed</b>
  248. </td>
  249. <td>
  250. <b>#Mined</b>
  251. </td>
  252. </tr>
  253. <tr>
  254. <td>
  255. <div id = "amountharmed"></div>
  256. </td>
  257. <td>
  258. <div id = "amountunh"></div>
  259. </td>
  260. <td>
  261. <div id = "amountmined"></div>
  262. </td>
  263. </tr>
  264.  
  265. <tr>
  266. <td>
  267. <b>Total time</b>
  268. </td>
  269. <td>
  270. <b>Average</b>
  271. </td>
  272. <td>
  273. <b>Time without</b>
  274. </td>
  275. </tr>
  276. <tr>
  277. <td>
  278. <div id = "totallifetime"></div>
  279. </td>
  280. <td>
  281. <div id = "averagelifetime"></div>
  282. </td>
  283. <td>
  284. <div id = "totalwithout"></div>
  285. </td>
  286. </tr>
  287. </table>
  288. <br/>
  289. <div id = "options">
  290. <table width = "250" class = "ignoreClick">
  291. <form id = "settingsform">
  292. <tr>
  293. <th colspan = 2>Settings</th>
  294. </tr>
  295. <tr>
  296. <td>
  297. Name color:
  298. </td>
  299. <td>
  300. <select id = 'colorDropDown' name = 'color' onchange = 'setColor()'>
  301. <option value = '#D52000' style = 'color:#D52000;' selected><b>Current Color</b></option><option value = '#000000' style='color:#000000'><b>Black</b></option><option value = '#FF0000' style='color:#FF0000'><b>Red</b></option><option value = '#0B610B' style='color:#0B610B'><b>Green</b></option><option value = '#FF4000' style='color:#FF4000'><b>Orange</b></option><option value = '#6600CC' style='color:#6600CC'><b>Purple</b></option><option value = '#FF00FF' style='color:#FF00FF'><b>Pink</b></option><option value = '#0000FF' style='color:#0000FF'><b>Blue</b></option> </select>
  302. </td>
  303. </tr>
  304. <tr>
  305. <td>
  306. Enable notifications:
  307. </td>
  308. <td>
  309. <input type = "checkbox" id = "enableNotifications" name = "notifications" onclick = "settingsFormOnChange()">
  310. </input>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td>
  315. Add world to chat box<br/> when you click it:
  316. </td>
  317. <td>
  318.  
  319. <input type = "checkbox" id = "showworlds" name = "addworlds" onclick = "settingsFormOnChange()">
  320. </input>
  321. </td>
  322. </tr>
  323. <tr>
  324. <td>
  325. Enable Sounds:
  326. </td>
  327. <td>
  328. <input type = "checkbox" id = "enablesounds" name = "enable_sounds" onclick = "settingsFormOnChange()" >
  329. </input>
  330. </td>
  331. </tr>
  332. <tr>
  333. <td>
  334. Names where you get highlighted : <br/>
  335. Seperate by new lines.
  336. </td>
  337. <td>
  338. <div style = "padding: 7px;">
  339. <textarea name = "hlnames" form = "settingsform" class = "ignoreClick" id = "hlnamestextarea" rows = '5' style = "width:100%" onclick = "settingsFormOnChange()"s>Template&#10;Temp&#10;</textarea>
  340. </div>
  341. </td>
  342. </tr>
  343. <tr>
  344. <td>
  345. Filter calls <input type = "checkbox" id = "filtercalls" name = "filter_calls" onclick = "filterCalls()" ></input>
  346. </td>
  347. <td>
  348. Filter a/m/c <input type = "checkbox" id = "filteramc" name = "filter_amc" onclick = "filterAMC()" ></input>
  349. </td>
  350. <tr>
  351. <tr>
  352. <td>
  353. Filter regular messages <input type = "checkbox" id = "filterchat" name = "filter_chat" onclick = "filterChat()" ></input>
  354. </td>
  355. <td>
  356. Filter login messages <input type = "checkbox" id = "filterlogin" name = "filter_login" onclick = "filterLogin()" ></input>
  357. </td>
  358. <tr>
  359. <td colspan = "2">
  360. <center>
  361. <div id = "settingslog"></div>
  362. <input type = "submit" value = "Save"/></input>
  363. </center>
  364. </td>
  365. </tr>
  366.  
  367. </table>
  368. <script>
  369. $(function() {
  370. $('#settingsform').submit(function(event){
  371. event.preventDefault();
  372. $.ajax({
  373. type: 'POST',
  374. url: 'submitsettings.php',
  375. data:$('#settingsform').serialize(),
  376. });
  377. document.getElementById('settingslog').innerHTML = "Settings saved";
  378. if(typeof updateHLNames == 'function') {
  379. updateHLNames();
  380. }
  381. });
  382. return false;
  383. });
  384.  
  385. function settingsFormOnChange() {
  386. document.getElementById('settingslog').innerHTML = "Settings not saved";
  387. if(typeof updateHLNames == 'function') {
  388. updateHLNames();
  389. }
  390. }
  391.  
  392. function filterAMC() {
  393. if(document.getElementById("filteramc").checked) {
  394. $(".amcchat").hide();
  395. } else {
  396. $(".amcchat").show();
  397. }
  398. settingsFormOnChange();
  399. if(typeof scrollDown == "function") {
  400. scrollDown();
  401. }
  402. }
  403.  
  404. function filterCalls() {
  405. if(document.getElementById("filtercalls").checked) {
  406. $(".runechat").hide();
  407. $(".amcchat").hide();
  408. } else {
  409. $(".runechat").show();
  410. $(".amcchat").show();
  411. }
  412. settingsFormOnChange();
  413. if(typeof scrollDown == "function") {
  414. scrollDown();
  415. }
  416. }
  417.  
  418. function filterChat() {
  419. if(document.getElementById("filterchat").checked) {
  420. $(".messagechat").hide();
  421. } else {
  422. $(".messagechat").show();
  423. }
  424. settingsFormOnChange();
  425. if(typeof scrollDown == "function") {
  426. scrollDown();
  427. }
  428. }
  429.  
  430. function filterLogin() {
  431. if(document.getElementById("filterlogin").checked) {
  432. $(".loginchat").hide();
  433. } else {
  434. $(".loginchat").show();
  435. }
  436. settingsFormOnChange();
  437. if(typeof scrollDown == "function") {
  438. scrollDown();
  439. }
  440. }
  441. </script> </div>
  442. </div>
  443. </div>
  444. </div>
  445.  
  446. <script type = 'text/javascript'>
  447.  
  448. var colorPick = document.getElementById("colorpicker");
  449. var hexcolor = document.getElementById("hexcolor");
  450. hexcolor.value = colorPick.value;
  451. $('#colorpicker').on('change', function() {
  452. hexcolor.value = this.value;
  453. });
  454.  
  455. $('#hexcolor').on('change', function() {
  456. var val = '#'.concat(this.value.replace("#",""));
  457. colorPick.value = this.value;
  458. });
  459.  
  460. function checkprifaccess() {
  461. var name = document.getElementById('checkprifname').value;
  462. var rnd = new Date().getTime();
  463. document.getElementById('prifaccessresult').innerHTML = "Checking " + name;
  464. $.post('checkprifaccess.php?rnd='+rnd,{rsname: name}, function (data) {
  465. document.getElementById('prifaccessresult').innerHTML = data;
  466. });
  467. document.getElementById('checkprifname').value = "";
  468. }
  469.  
  470. function giverank() {
  471. var chat = document.getElementById('chat');
  472. var temp = chat.value;
  473. var rankname = document.getElementById('giverankname').value.replace(" ", "_");
  474. var newrank = document.getElementById('chosenrank').value;
  475. chat.value = "/rank " + rankname + " " + newrank;
  476. submit();
  477. chat.value = temp;
  478. }
  479.  
  480. function givecolor() {
  481. var chat = document.getElementById('chat');
  482. var temp = chat.value;
  483. var colorname = document.getElementById('colorname').value.replace(" ", "_");
  484. var newcolor = document.getElementById('hexcolor').value;
  485. chat.value = "/color " + colorname + " " + newcolor;
  486. submit();
  487. chat.value = temp;
  488. }
  489.  
  490. </script>
  491. </body>
  492.  
  493. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement