Advertisement
Guest User

Untitled

a guest
Apr 1st, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 216.53 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4. <head>
  5. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-26778140-6"></script>
  6. <script>
  7. window.dataLayer = window.dataLayer || [];
  8.  
  9. function gtag() { dataLayer.push(arguments); }
  10. gtag('js', new Date());
  11.  
  12. gtag('config', 'UA-26778140-6');
  13. </script>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  15. <meta name="description" content="Summarize articles, text, websites, essays and documents for free with SMMRY" />
  16. <meta name="keywords" content="smmry, summarize, summary generator, summary, summarizer, summarizing, summarizing tool, article summary, text summary, pdf summary, document summary" />
  17. <meta content="initial-scale=0.60, user-scalable=yes" name="viewport" />
  18. <link rel="SHORTCUT ICON" href="https://smmry.com/favicon.ico">
  19. <title>SMMRY - Summarize articles, text, websites, essays and documents</title>
  20. <link rel="stylesheet" type="text/css" href="https://smmry.com/common.css" />
  21. <link rel="stylesheet" type="text/css" href="https://smmry.com/sm_upload_style.css" />
  22. <link rel="stylesheet" type="text/css" href="https://smmry.com/footer.css" />
  23. <link rel="image_src" href="https://smmry.com/sm_images/sm_thumbnail.png" />
  24. <script type="text/javascript">
  25. function sm_microtime(get_as_float) {
  26. var now = new Date().getTime() / 1000;
  27. var s = parseInt(now, 10);
  28.  
  29. return (get_as_float) ? now : (Math.round((now - s) * 1000) / 1000) + ' ' + s;
  30. }
  31.  
  32. function sm_utf8_encode(argString) {
  33. if (argString === null || typeof argString === "undefined") {
  34. return "";
  35. }
  36.  
  37. var string = (argString + ''); // .replace(/\r\n/g, "\n").replace(/\r/g, "\n");
  38. var utftext = "",
  39. start, end, stringl = 0;
  40.  
  41. start = end = 0;
  42. stringl = string.length;
  43. for (var n = 0; n < stringl; n++) {
  44. var c1 = string.charCodeAt(n);
  45. var enc = null;
  46.  
  47. if (c1 < 128) {
  48. end++;
  49. } else if (c1 > 127 && c1 < 2048) {
  50. enc = String.fromCharCode((c1 >> 6) | 192) + String.fromCharCode((c1 & 63) | 128);
  51. } else {
  52. enc = String.fromCharCode((c1 >> 12) | 224) + String.fromCharCode(((c1 >> 6) & 63) | 128) + String.fromCharCode((c1 & 63) | 128);
  53. }
  54. if (enc !== null) {
  55. if (end > start) {
  56. utftext += string.slice(start, end);
  57. }
  58. utftext += enc;
  59. start = end = n + 1;
  60. }
  61. }
  62.  
  63. if (end > start) {
  64. utftext += string.slice(start, stringl);
  65. }
  66.  
  67. return utftext;
  68. }
  69.  
  70. function sm_md5(str) {
  71. var xl;
  72.  
  73. var rotateLeft = function(lValue, iShiftBits) {
  74. return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits));
  75. };
  76.  
  77. var addUnsigned = function(lX, lY) {
  78. var lX4, lY4, lX8, lY8, lResult;
  79. lX8 = (lX & 0x80000000);
  80. lY8 = (lY & 0x80000000);
  81. lX4 = (lX & 0x40000000);
  82. lY4 = (lY & 0x40000000);
  83. lResult = (lX & 0x3FFFFFFF) + (lY & 0x3FFFFFFF);
  84. if (lX4 & lY4) {
  85. return (lResult ^ 0x80000000 ^ lX8 ^ lY8);
  86. }
  87. if (lX4 | lY4) {
  88. if (lResult & 0x40000000) {
  89. return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);
  90. } else {
  91. return (lResult ^ 0x40000000 ^ lX8 ^ lY8);
  92. }
  93. } else {
  94. return (lResult ^ lX8 ^ lY8);
  95. }
  96. };
  97.  
  98. var _F = function(x, y, z) {
  99. return (x & y) | ((~x) & z);
  100. };
  101. var _G = function(x, y, z) {
  102. return (x & z) | (y & (~z));
  103. };
  104. var _H = function(x, y, z) {
  105. return (x ^ y ^ z);
  106. };
  107. var _I = function(x, y, z) {
  108. return (y ^ (x | (~z)));
  109. };
  110.  
  111. var _FF = function(a, b, c, d, x, s, ac) {
  112. a = addUnsigned(a, addUnsigned(addUnsigned(_F(b, c, d), x), ac));
  113. return addUnsigned(rotateLeft(a, s), b);
  114. };
  115.  
  116. var _GG = function(a, b, c, d, x, s, ac) {
  117. a = addUnsigned(a, addUnsigned(addUnsigned(_G(b, c, d), x), ac));
  118. return addUnsigned(rotateLeft(a, s), b);
  119. };
  120.  
  121. var _HH = function(a, b, c, d, x, s, ac) {
  122. a = addUnsigned(a, addUnsigned(addUnsigned(_H(b, c, d), x), ac));
  123. return addUnsigned(rotateLeft(a, s), b);
  124. };
  125.  
  126. var _II = function(a, b, c, d, x, s, ac) {
  127. a = addUnsigned(a, addUnsigned(addUnsigned(_I(b, c, d), x), ac));
  128. return addUnsigned(rotateLeft(a, s), b);
  129. };
  130.  
  131. var convertToWordArray = function(str) {
  132. var lWordCount;
  133. var lMessageLength = str.length;
  134. var lNumberOfWords_temp1 = lMessageLength + 8;
  135. var lNumberOfWords_temp2 = (lNumberOfWords_temp1 - (lNumberOfWords_temp1 % 64)) / 64;
  136. var lNumberOfWords = (lNumberOfWords_temp2 + 1) * 16;
  137. var lWordArray = new Array(lNumberOfWords - 1);
  138. var lBytePosition = 0;
  139. var lByteCount = 0;
  140. while (lByteCount < lMessageLength) {
  141. lWordCount = (lByteCount - (lByteCount % 4)) / 4;
  142. lBytePosition = (lByteCount % 4) * 8;
  143. lWordArray[lWordCount] = (lWordArray[lWordCount] | (str.charCodeAt(lByteCount) << lBytePosition));
  144. lByteCount++;
  145. }
  146. lWordCount = (lByteCount - (lByteCount % 4)) / 4;
  147. lBytePosition = (lByteCount % 4) * 8;
  148. lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80 << lBytePosition);
  149. lWordArray[lNumberOfWords - 2] = lMessageLength << 3;
  150. lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29;
  151. return lWordArray;
  152. };
  153.  
  154. var wordToHex = function(lValue) {
  155. var wordToHexValue = "",
  156. wordToHexValue_temp = "",
  157. lByte, lCount;
  158. for (lCount = 0; lCount <= 3; lCount++) {
  159. lByte = (lValue >>> (lCount * 8)) & 255;
  160. wordToHexValue_temp = "0" + lByte.toString(16);
  161. wordToHexValue = wordToHexValue + wordToHexValue_temp.substr(wordToHexValue_temp.length - 2, 2);
  162. }
  163. return wordToHexValue;
  164. };
  165.  
  166. var x = [],
  167. k, AA, BB, CC, DD, a, b, c, d, S11 = 7,
  168. S12 = 12,
  169. S13 = 17,
  170. S14 = 22,
  171. S21 = 5,
  172. S22 = 9,
  173. S23 = 14,
  174. S24 = 20,
  175. S31 = 4,
  176. S32 = 11,
  177. S33 = 16,
  178. S34 = 23,
  179. S41 = 6,
  180. S42 = 10,
  181. S43 = 15,
  182. S44 = 21;
  183.  
  184. str = this.sm_utf8_encode(str);
  185. x = convertToWordArray(str);
  186. a = 0x67452301;
  187. b = 0xEFCDAB89;
  188. c = 0x98BADCFE;
  189. d = 0x10325476;
  190.  
  191. xl = x.length;
  192. for (k = 0; k < xl; k += 16) {
  193. AA = a;
  194. BB = b;
  195. CC = c;
  196. DD = d;
  197. a = _FF(a, b, c, d, x[k + 0], S11, 0xD76AA478);
  198. d = _FF(d, a, b, c, x[k + 1], S12, 0xE8C7B756);
  199. c = _FF(c, d, a, b, x[k + 2], S13, 0x242070DB);
  200. b = _FF(b, c, d, a, x[k + 3], S14, 0xC1BDCEEE);
  201. a = _FF(a, b, c, d, x[k + 4], S11, 0xF57C0FAF);
  202. d = _FF(d, a, b, c, x[k + 5], S12, 0x4787C62A);
  203. c = _FF(c, d, a, b, x[k + 6], S13, 0xA8304613);
  204. b = _FF(b, c, d, a, x[k + 7], S14, 0xFD469501);
  205. a = _FF(a, b, c, d, x[k + 8], S11, 0x698098D8);
  206. d = _FF(d, a, b, c, x[k + 9], S12, 0x8B44F7AF);
  207. c = _FF(c, d, a, b, x[k + 10], S13, 0xFFFF5BB1);
  208. b = _FF(b, c, d, a, x[k + 11], S14, 0x895CD7BE);
  209. a = _FF(a, b, c, d, x[k + 12], S11, 0x6B901122);
  210. d = _FF(d, a, b, c, x[k + 13], S12, 0xFD987193);
  211. c = _FF(c, d, a, b, x[k + 14], S13, 0xA679438E);
  212. b = _FF(b, c, d, a, x[k + 15], S14, 0x49B40821);
  213. a = _GG(a, b, c, d, x[k + 1], S21, 0xF61E2562);
  214. d = _GG(d, a, b, c, x[k + 6], S22, 0xC040B340);
  215. c = _GG(c, d, a, b, x[k + 11], S23, 0x265E5A51);
  216. b = _GG(b, c, d, a, x[k + 0], S24, 0xE9B6C7AA);
  217. a = _GG(a, b, c, d, x[k + 5], S21, 0xD62F105D);
  218. d = _GG(d, a, b, c, x[k + 10], S22, 0x2441453);
  219. c = _GG(c, d, a, b, x[k + 15], S23, 0xD8A1E681);
  220. b = _GG(b, c, d, a, x[k + 4], S24, 0xE7D3FBC8);
  221. a = _GG(a, b, c, d, x[k + 9], S21, 0x21E1CDE6);
  222. d = _GG(d, a, b, c, x[k + 14], S22, 0xC33707D6);
  223. c = _GG(c, d, a, b, x[k + 3], S23, 0xF4D50D87);
  224. b = _GG(b, c, d, a, x[k + 8], S24, 0x455A14ED);
  225. a = _GG(a, b, c, d, x[k + 13], S21, 0xA9E3E905);
  226. d = _GG(d, a, b, c, x[k + 2], S22, 0xFCEFA3F8);
  227. c = _GG(c, d, a, b, x[k + 7], S23, 0x676F02D9);
  228. b = _GG(b, c, d, a, x[k + 12], S24, 0x8D2A4C8A);
  229. a = _HH(a, b, c, d, x[k + 5], S31, 0xFFFA3942);
  230. d = _HH(d, a, b, c, x[k + 8], S32, 0x8771F681);
  231. c = _HH(c, d, a, b, x[k + 11], S33, 0x6D9D6122);
  232. b = _HH(b, c, d, a, x[k + 14], S34, 0xFDE5380C);
  233. a = _HH(a, b, c, d, x[k + 1], S31, 0xA4BEEA44);
  234. d = _HH(d, a, b, c, x[k + 4], S32, 0x4BDECFA9);
  235. c = _HH(c, d, a, b, x[k + 7], S33, 0xF6BB4B60);
  236. b = _HH(b, c, d, a, x[k + 10], S34, 0xBEBFBC70);
  237. a = _HH(a, b, c, d, x[k + 13], S31, 0x289B7EC6);
  238. d = _HH(d, a, b, c, x[k + 0], S32, 0xEAA127FA);
  239. c = _HH(c, d, a, b, x[k + 3], S33, 0xD4EF3085);
  240. b = _HH(b, c, d, a, x[k + 6], S34, 0x4881D05);
  241. a = _HH(a, b, c, d, x[k + 9], S31, 0xD9D4D039);
  242. d = _HH(d, a, b, c, x[k + 12], S32, 0xE6DB99E5);
  243. c = _HH(c, d, a, b, x[k + 15], S33, 0x1FA27CF8);
  244. b = _HH(b, c, d, a, x[k + 2], S34, 0xC4AC5665);
  245. a = _II(a, b, c, d, x[k + 0], S41, 0xF4292244);
  246. d = _II(d, a, b, c, x[k + 7], S42, 0x432AFF97);
  247. c = _II(c, d, a, b, x[k + 14], S43, 0xAB9423A7);
  248. b = _II(b, c, d, a, x[k + 5], S44, 0xFC93A039);
  249. a = _II(a, b, c, d, x[k + 12], S41, 0x655B59C3);
  250. d = _II(d, a, b, c, x[k + 3], S42, 0x8F0CCC92);
  251. c = _II(c, d, a, b, x[k + 10], S43, 0xFFEFF47D);
  252. b = _II(b, c, d, a, x[k + 1], S44, 0x85845DD1);
  253. a = _II(a, b, c, d, x[k + 8], S41, 0x6FA87E4F);
  254. d = _II(d, a, b, c, x[k + 15], S42, 0xFE2CE6E0);
  255. c = _II(c, d, a, b, x[k + 6], S43, 0xA3014314);
  256. b = _II(b, c, d, a, x[k + 13], S44, 0x4E0811A1);
  257. a = _II(a, b, c, d, x[k + 4], S41, 0xF7537E82);
  258. d = _II(d, a, b, c, x[k + 11], S42, 0xBD3AF235);
  259. c = _II(c, d, a, b, x[k + 2], S43, 0x2AD7D2BB);
  260. b = _II(b, c, d, a, x[k + 9], S44, 0xEB86D391);
  261. a = addUnsigned(a, AA);
  262. b = addUnsigned(b, BB);
  263. c = addUnsigned(c, CC);
  264. d = addUnsigned(d, DD);
  265. }
  266.  
  267. var temp = wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d);
  268.  
  269. return temp.toLowerCase();
  270. }
  271.  
  272. function sm_random(from, to) {
  273. return Math.floor(Math.random() * (to - from + 1) + from);
  274. }
  275.  
  276. function sm_addslashes(str) {
  277. return (str + '').replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0');
  278. }
  279.  
  280. function sm_stripslashes(str) {
  281. return (str + '').replace(/\\(.?)/g, function(s, n1) {
  282. switch (n1) {
  283. case '\\':
  284. return '\\';
  285. case '0':
  286. return '\u0000';
  287. case '':
  288. return '';
  289. default:
  290. return n1;
  291. }
  292. });
  293. }
  294.  
  295. function sm_array_search(needle, haystack, argStrict) {
  296. var strict = !!argStrict,
  297. key = '';
  298.  
  299. if (haystack && typeof haystack === 'object' && haystack.change_key_case) { // Duck-type check for our own array()-created PHPJS_Array
  300. return haystack.search(needle, argStrict);
  301. }
  302. if (typeof needle === 'object' && needle.exec) { // Duck-type for RegExp
  303. if (!strict) { // Let's consider case sensitive searches as strict
  304. var flags = 'i' + (needle.global ? 'g' : '') +
  305. (needle.multiline ? 'm' : '') +
  306. (needle.sticky ? 'y' : ''); // sticky is FF only
  307. needle = new RegExp(needle.source, flags);
  308. }
  309. for (key in haystack) {
  310. if (needle.test(haystack[key])) {
  311. return key;
  312. }
  313. }
  314. return false;
  315. }
  316.  
  317. for (key in haystack) {
  318. if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) {
  319. return key;
  320. }
  321. }
  322.  
  323. return false;
  324. }
  325.  
  326. function sm_substr_count(haystack, needle, offset, length) {
  327. var pos = 0,
  328. cnt = 0;
  329.  
  330. haystack += '';
  331. needle += '';
  332. if (isNaN(offset)) {
  333. offset = 0;
  334. }
  335. if (isNaN(length)) {
  336. length = 0;
  337. }
  338. offset--;
  339.  
  340. while ((offset = haystack.indexOf(needle, offset + 1)) != -1) {
  341. if (length > 0 && (offset + needle.length) > length) {
  342. return false;
  343. } else {
  344. cnt++;
  345. }
  346. }
  347.  
  348. return cnt;
  349. }
  350.  
  351. function sm_opacity(sm_element_id, sm_opacity, sm_direction) {
  352. if (window.SM_FADE_ARRAY[sm_element_id] != sm_direction && (typeof window.SM_QUICK_TRANSITIONS_STATE == "undefined" || window.SM_QUICK_TRANSITIONS_STATE == false)) {
  353. return false;
  354. }
  355. var object = document.getElementById(sm_element_id).style;
  356. object.opacity = (sm_opacity / 100);
  357. }
  358.  
  359. function sm_element_add(sm_element_id, sm_delay, sm_transparency) {
  360. sm_transparency = typeof(sm_transparency) != 'undefined' ? sm_transparency : 100;
  361. if ((document.getElementById(sm_element_id).style.display == "block" && document.getElementById(sm_element_id).style.opacity == 1) || (document.getElementById(sm_element_id).style.display == "inline" && document.getElementById(sm_element_id).style.opacity == 1) || (document.getElementById(sm_element_id).style.display == "" && document.getElementById(sm_element_id).style.opacity == 1)) {
  362. return null;
  363. }
  364. if (typeof window.SM_QUICK_TRANSITIONS_STATE != "undefined" && window.SM_QUICK_TRANSITIONS_STATE == true) {
  365. sm_opacity(sm_element_id, sm_transparency, true);
  366. sm_element_snap_add(sm_element_id);
  367. return true;
  368. }
  369. window.SM_FADE_ARRAY[sm_element_id] = true;
  370. sm_opacity(sm_element_id, 0, true);
  371. document.getElementById(sm_element_id).style.display = "block";
  372. var sm_speed = 2;
  373. var sm_speed_total = 0;
  374. for (i = 0; i <= sm_transparency; i += sm_speed) {
  375. sm_speed_total += sm_speed + sm_delay;
  376. setTimeout("sm_opacity(\"" + sm_element_id + "\", " + i + ", true);", sm_speed_total);
  377. }
  378. setTimeout("sm_element_delete(\"" + sm_element_id + "\", true);", sm_speed_total + 1);
  379. }
  380.  
  381. function sm_element_snap_add(sm_element_id) {
  382. document.getElementById(sm_element_id).style.display = "block";
  383. }
  384.  
  385. function sm_element_remove(sm_element_id, sm_delay, sm_transparency) {
  386. sm_transparency = typeof(sm_transparency) != 'undefined' ? sm_transparency : 100;
  387. if (document.getElementById(sm_element_id).style.display == "none") {
  388. return null;
  389. }
  390. if (typeof window.SM_QUICK_TRANSITIONS_STATE != "undefined" && window.SM_QUICK_TRANSITIONS_STATE == true) {
  391. sm_element_snap_remove(sm_element_id);
  392. sm_opacity(sm_element_id, 100, false);
  393. return true;
  394. }
  395. window.SM_FADE_ARRAY[sm_element_id] = false;
  396. var sm_speed = 2;
  397. var sm_speed_total = 0;
  398. for (i = sm_transparency; i >= 0; i -= sm_speed) {
  399. sm_speed_total += sm_speed + sm_delay;
  400. setTimeout("sm_opacity(\"" + sm_element_id + "\", " + i + ", false);", sm_speed_total);
  401. }
  402. setTimeout("sm_element_end_remove(\"" + sm_element_id + "\", false);", sm_speed_total + 1);
  403. setTimeout("sm_element_delete(\"" + sm_element_id + "\", false);", sm_speed_total + 2);
  404. }
  405.  
  406. function sm_element_end_remove(sm_element_id, sm_direction) {
  407. if (window.SM_FADE_ARRAY[sm_element_id] != sm_direction) {
  408. return false;
  409. }
  410. document.getElementById(sm_element_id).style.display = "none";
  411. sm_opacity(sm_element_id, 100, false);
  412. }
  413.  
  414. function sm_element_snap_remove(sm_element_id) {
  415. document.getElementById(sm_element_id).style.display = "none";
  416. sm_opacity(sm_element_id, 100, false);
  417. }
  418.  
  419. function sm_element_delete(sm_element_id, sm_direction) {
  420. if (window.SM_FADE_ARRAY[sm_element_id] != sm_direction) {
  421. return false;
  422. }
  423. delete window.SM_FADE_ARRAY[sm_element_id];
  424. }
  425.  
  426. function sm_object_position_top(sm_object) {
  427. var sm_top = 0;
  428. while (sm_object) {
  429. sm_top += sm_object.offsetTop;
  430. sm_object = sm_object.offsetParent;
  431. }
  432. return sm_top;
  433. }
  434.  
  435. function sm_object_position_left(sm_object) {
  436. var sm_left = 0;
  437. while (sm_object) {
  438. sm_left += sm_object.offsetLeft;
  439. sm_object = sm_object.offsetParent;
  440. }
  441. return sm_left;
  442. }
  443.  
  444. function sm_is_function(sm_function_name) {
  445. var sm_type = {};
  446. return sm_function_name && sm_type.toString.call(sm_function_name) == '[object Function]';
  447. }
  448.  
  449. function sm_http_connect(sm_connect_url, sm_return_function) {
  450. if (typeof sm_return_function == "undefined") {
  451. var sm_return_function = "sm_null";
  452. }
  453. setTimeout("sm_http_connect_main(\"" + sm_connect_url + "\", \"" + sm_return_function + "\")", 1);
  454. }
  455.  
  456. function sm_http_connect_main(sm_connect_url, sm_return_function) {
  457. if (typeof window.SM_LOAD_HTTP == "undefined") {
  458. window.SM_LOAD_HTTP = false;
  459. }
  460. if (typeof window.SM_LOAD_HTTP_SUB == "undefined") {
  461. window.SM_LOAD_HTTP_SUB = false;
  462. }
  463. if (window.SM_LOAD_HTTP == true || window.SM_LOAD_HTTP_SUB == true) {
  464. setTimeout("sm_http_connect_main(\"" + sm_connect_url + "\", \"" + sm_return_function + "\")", 100);
  465. return false;
  466. }
  467.  
  468. sm_http_object = sm_http_object_retrieve();
  469. if (sm_http_object != null) {
  470.  
  471. window.SM_LOAD_HTTP_SUB = true;
  472. sm_http_object.open("GET", sm_connect_url);
  473. sm_http_object.send(null);
  474. sm_http_object.onreadystatechange = function() {
  475. if (sm_http_object.readyState == 4) {
  476. window.SM_LOAD_HTTP_SUB = false;
  477. if (sm_return_function != "sm_null") {
  478. eval(sm_return_function + "(\"" + sm_addslashes(sm_http_object.responseText) + "\")");
  479. }
  480. }
  481. }
  482. }
  483. }
  484.  
  485. function sm_http_object_retrieve() {
  486. if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
  487. else if (window.XMLHttpRequest) return new XMLHttpRequest();
  488. else {
  489. alert("Your browser does not support AJAX.");
  490. return null;
  491. }
  492. }
  493.  
  494. function sm_tip_add(sm_object) {
  495. if (sm_object) {
  496. var sm_tip_content = "ERROR: The tip could not be found";
  497. if (sm_object.id == "sm_tip_question_avoid") {
  498. sm_tip_content = "Sentences containing question marks will not be included in the summary.";
  499. } else if (sm_object.id == "sm_tip_exclamation_avoid") {
  500. sm_tip_content = "Sentences containing exclamation marks will not be included in the summary.";
  501. } else if (sm_object.id == "sm_tip_quotation_avoid") {
  502. sm_tip_content = "Sentences containing quotation marks will not be included in the summary.";
  503. } else if (sm_object.id == "sm_tip_heat_map") {
  504. sm_tip_content = "Sentences will be colour coded by importance. Red sentences are the most important, yellow the least.";
  505. } else if (sm_object.id == "sm_tip_quick_transitions") {
  506. sm_tip_content = "Most fading and sliding effects are disabled so that any transitions occur nearly instantly.";
  507. } else if (sm_object.id == "sm_tip_specify_topic") {
  508. sm_tip_content = "Allows you to alter the summary so that it focuses on a certain topic or topics. Green keywords are the most important, dark blue the least.";
  509. } else if (sm_object.id == "sm_tip_remember_settings") {
  510. sm_tip_content = "Your settings will be saved and associated with your user account. This way whenever you are logged in to your account the same settings will be applied. If checkbox is partially checked than that setting has not been saved but is temporarily activated.";
  511. } else if (sm_object.id == "sm_tip_strict_scan") {
  512. sm_tip_content = "Sentences will only be included in the summary if they contain at least one of the specified keywords. If no keywords have been specified, no filtering occurs.";
  513. } else if (sm_object.id == "sm_tip_api_disabled") {
  514. sm_tip_content = "The API key will be temporarily disabled until you switch to FREE or FULL mode.";
  515. } else if (sm_object.id == "sm_tip_api_limited") {
  516. sm_tip_content = "A limit of 100 API requests can be made daily, and each request must be at least 10 seconds apart. If a request was made too soon, the API will wait the required time before fulfilling the request.";
  517. } else if (sm_object.id == "sm_tip_api_full") {
  518. sm_tip_content = "An unlimited number of requests can be made with no time limit in-between. 1 credit costs $0.001, or a tenth of a cent. It costs 2 credits per 1000 characters returned by the API (only summary content is counted). It costs an additional 8 credits if the article has not been previously submitted and cached by the algorithm, that way re-summarizing the same article is cheaper. When credit costs are being calculated, decimals are rounded upwards.";
  519. } else if (sm_object.id == "sm_tip_credit_discount") {
  520. sm_tip_content = "This is a unique credit expenditure discount that is specifically applied to your account. Every time a credit is deducted from your account this discount reduces the cost.";
  521. }
  522. document.getElementById('sm_tip_container').innerHTML = sm_tip_content;
  523. document.getElementById('sm_tip_container').style.left = "-220px";
  524. document.getElementById('sm_tip_container').style.display = "block";
  525.  
  526. var sm_tip_container_height = document.getElementById('sm_tip_container').offsetHeight;
  527. document.getElementById('sm_tip_container').style.display = "none";
  528. document.getElementById('sm_tip_container').style.top = (sm_object_position_top(sm_object) - sm_tip_container_height - 2) + "px";
  529. document.getElementById('sm_tip_container').style.left = (sm_object_position_left(sm_object) + 20) + "px";
  530. sm_element_add("sm_tip_container", 5);
  531. }
  532. }
  533.  
  534. function sm_tip_remove(sm_object) {
  535. sm_element_remove("sm_tip_container", 5);
  536. }
  537.  
  538. function sm_common_script_initial() {
  539. window.SM_FADE_ARRAY = new Array();
  540. window.SM_SLIDE_ELEMENT_A = null;
  541. window.SM_SLIDE_ELEMENT_B = null;
  542. window.SM_SLIDE_ELEMENT_C = null;
  543. window.SM_SLIDE_ELEMENT_D = null;
  544. window.SM_SLIDE_ELEMENT_E = null;
  545. }
  546. </script>
  547. <script type="text/javascript">
  548. function sm_register_return_http_protocol(sm_register_node, sm_register_value, sm_bypass) {
  549. sm_http_object = sm_http_object_retrieve();
  550. if (sm_http_object != null) {
  551. sm_http_object.open("GET", "sm_register_return.php?sm_register_node=" + sm_register_node + "&sm_register_value=" + sm_register_value);
  552. sm_http_object.send(null);
  553. sm_http_object.onreadystatechange = function() {
  554. if (sm_http_object.readyState == 4) {
  555. sm_register_return = sm_http_object.responseText;
  556. if (sm_register_return.length == 0) {
  557. sm_register_notice(document.getElementById(sm_register_node), 1, "", sm_bypass);
  558. } else {
  559. sm_register_notice(document.getElementById(sm_register_node), 2, sm_register_return, sm_bypass);
  560. }
  561. }
  562. }
  563. }
  564. }
  565.  
  566. function sm_register_submit_http_protocol() {
  567. var sm_register_time = Math.round(sm_microtime(true) - window.SM_REGISTER_TIME);
  568. var sm_username = document.getElementById('sm_register_username').value;
  569. document.getElementById('sm_register_submit_container').style.display = "none";
  570. document.getElementById('sm_register_submit_loader').style.display = "block";
  571. sm_http_object = sm_http_object_retrieve();
  572. if (sm_http_object != null) {
  573. var sm_register_submit_url = "sm_register_submit.php?sm_register_time=" + sm_register_time + "&";
  574. var sm_array_count = 0;
  575. for (sm_key in window.SM_REGISTER_SUCCESS_ARRAY) {
  576. sm_array_count++;
  577. }
  578. var sm_counter = 1;
  579. for (sm_key in window.SM_REGISTER_SUCCESS_ARRAY) {
  580. var sm_register_value = document.getElementById(sm_key).value;
  581. if (sm_key == "sm_register_password" || sm_key == "sm_register_password_again") {
  582. sm_register_value = sm_md5(sm_register_value);
  583. }
  584. sm_register_submit_url += sm_key + "=" + sm_register_value;
  585. if (sm_counter < sm_array_count) {
  586. sm_register_submit_url += "&";
  587. }
  588. sm_counter++;
  589. }
  590. sm_http_object.open("GET", sm_register_submit_url);
  591. sm_http_object.send(null);
  592. sm_http_object.onreadystatechange = function() {
  593. if (sm_http_object.readyState == 4) {
  594. sm_register_return = sm_http_object.responseText;
  595. if (sm_register_return.search(/SM_DIVIDE/) != -1) {
  596. sm_register_array = sm_register_return.split("SM_DIVIDE");
  597. if (sm_register_array[0] == "SM_REGISTER_SUCCESS") {
  598. sm_login_process(sm_register_array[1]);
  599. document.getElementById('sm_register_success_username').innerHTML = sm_username;
  600. document.getElementById('sm_register_success_time').innerHTML = sm_register_time;
  601. document.getElementById('sm_register_success_time_average').innerHTML = sm_register_array[2];
  602. document.getElementById('sm_register_form_container').style.display = "none";
  603. document.getElementById('sm_register_success_container').style.display = "block";
  604. document.getElementById('sm_register_submit_loader').style.display = "none";
  605. document.getElementById('sm_register_submit_container').style.display = "block";
  606. }
  607. }
  608. }
  609. }
  610. }
  611. }
  612.  
  613. function sm_login_submit_http_protocol() {
  614. document.getElementById('sm_login_submit_container').style.display = "none";
  615. document.getElementById('sm_login_submit_loader').style.display = "block";
  616. var sm_login_username = document.getElementById('sm_login_username').value;
  617. var sm_login_password = sm_md5(document.getElementById('sm_login_password').value);
  618. if (document.getElementById('sm_login_remember').checked == true) {
  619. var sm_login_remember = "on";
  620. } else {
  621. var sm_login_remember = "off";
  622. }
  623. sm_http_object = sm_http_object_retrieve();
  624. if (sm_http_object != null) {
  625. sm_http_object.open("GET", "sm_login_submit.php?sm_login_username=" + sm_login_username + "&sm_login_password=" + sm_login_password + "&sm_login_remember=" + sm_login_remember);
  626. sm_http_object.send(null);
  627. sm_http_object.onreadystatechange = function() {
  628. if (sm_http_object.readyState == 4) {
  629. sm_login_return = sm_http_object.responseText;
  630. sm_login_array = sm_login_return.split("SM_DIVIDE");
  631. if (sm_login_array[0] == "SM_LOGIN_SUCCESS") {
  632. sm_login_process(sm_login_array[1]);
  633. document.getElementById('sm_login_submit_loader').style.display = "none";
  634. document.getElementById('sm_login_submit_success').style.display = "block";
  635. setTimeout("sm_login_remove();", 1000);
  636. } else {
  637. document.getElementById('sm_login_submit_loader').style.display = "none";
  638. document.getElementById('sm_login_submit_container').style.display = "block";
  639. document.getElementById('sm_login_prompt').style.display = "none";
  640. document.getElementById('sm_login_error').style.display = "block";
  641. document.getElementById('sm_login_password').value = "";
  642. }
  643. }
  644. }
  645. }
  646. }
  647.  
  648. function sm_logout_submit_http_protocol() {
  649. sm_http_object = sm_http_object_retrieve();
  650. if (sm_http_object != null) {
  651. sm_http_object.open("GET", "sm_logout_submit.php");
  652. sm_http_object.send(null);
  653. }
  654. }
  655.  
  656. function sm_register_submit() {
  657. var sm_register_pass = true;
  658. for (sm_key in window.SM_REGISTER_SUCCESS_ARRAY) {
  659. if (window.SM_REGISTER_SUCCESS_ARRAY[sm_key] == false) {
  660. document.getElementById(sm_key).style.borderColor = "red";
  661. sm_register_pass = false;
  662. }
  663. }
  664. if (document.getElementById('sm_check_terms').checked == false) {
  665. document.getElementById('sm_check_terms').style.outlineWidth = "2px";
  666. sm_register_pass = false;
  667. }
  668. if (sm_register_pass == true) {
  669. sm_register_submit_http_protocol();
  670. }
  671. }
  672.  
  673. function sm_login_submit() {
  674. var sm_login_pass = true;
  675. if (document.getElementById('sm_login_username').value.length == 0) {
  676. document.getElementById('sm_login_username').style.borderColor = "red";
  677. sm_login_pass = false;
  678. }
  679. if (document.getElementById('sm_login_password').value.length == 0) {
  680. document.getElementById('sm_login_password').style.borderColor = "red";
  681. sm_login_pass = false;
  682. }
  683. if (sm_login_pass == true) {
  684. sm_login_submit_http_protocol();
  685. }
  686. }
  687.  
  688. function sm_register_check_clear() {
  689. document.getElementById('sm_check_terms').style.outlineWidth = "0px";
  690. }
  691.  
  692. function sm_register_notice(sm_notice_node, sm_notice_mode, sm_notice_message, sm_bypass) {
  693. var sm_notice_node_write = document.getElementById(sm_notice_node.id + '_notice');
  694. if (sm_notice_mode == 0) {
  695. sm_notice_node_write.innerHTML = "";
  696. sm_notice_node.style.borderColor = "#ead9ff";
  697. if (sm_bypass == 0) {
  698. window.SM_REGISTER_SUCCESS_ARRAY[sm_notice_node.id] = false;
  699. }
  700. } else if (sm_notice_mode == 1) {
  701. sm_notice_node_write.innerHTML = "<img style=\"position:relative;top:1px;left:3px;\" src=\"/sm_images/sm_green_tick.jpg\" />";
  702. sm_notice_node.style.borderColor = "green";
  703. if (sm_bypass == 0) {
  704. window.SM_REGISTER_SUCCESS_ARRAY[sm_notice_node.id] = true;
  705. }
  706. } else if (sm_notice_mode == 2 && sm_notice_message.length > 0) {
  707. sm_notice_node_write.innerHTML = "<img style=\"position:relative;top:2px;\" src=\"/sm_images/sm_orange_triangle.jpg\" /> <span style=\"position:relative;top:-4px;left:-8px;font-size:12px;color:#993300;background-color:#FFF;padding:7px;\">" + sm_notice_message + "</span>";
  708. sm_notice_node.style.borderColor = "#cc9933";
  709. if (sm_bypass == 0) {
  710. window.SM_REGISTER_SUCCESS_ARRAY[sm_notice_node.id] = false;
  711. }
  712. }
  713. }
  714.  
  715. function sm_register_flush(sm_register_node) {
  716. if (window.SM_REGISTER_TIME == null) {
  717. window.SM_REGISTER_TIME = sm_microtime(true);
  718. }
  719. sm_register_notice(sm_register_node, 0, "", 0);
  720. if (window.SM_REGISTER_FLUSH_NODE != sm_register_node.id) {
  721. window.SM_REGISTER_FLUSH_TIME = false;
  722. }
  723. window.SM_REGISTER_FLUSH_NODE = sm_register_node.id;
  724. if (window.SM_REGISTER_FLUSH_TIME == false && sm_register_node.value.length != 0) {
  725. window.SM_REGISTER_FLUSH_TIME = sm_microtime(true);
  726. setTimeout("sm_register_flush_process(document.getElementById('" + sm_register_node.id + "'), 0)", 400);
  727. } else if (sm_register_node.value.length == 0) {
  728. window.SM_REGISTER_FLUSH_TIME = false;
  729. sm_register_flush_process(sm_register_node, 0);
  730. } else {
  731. window.SM_REGISTER_FLUSH_TIME = sm_microtime(true);
  732. }
  733. }
  734.  
  735. function sm_login_flush(sm_login_node) {
  736. sm_login_node.style.borderColor = "#ead9ff";
  737. }
  738.  
  739. function sm_register_flush_process(sm_register_node, sm_bypass) {
  740. if (sm_bypass == 0 && window.SM_REGISTER_FLUSH_NODE == sm_register_node.id && window.SM_REGISTER_FLUSH_TIME != false && (sm_microtime(true) - window.SM_REGISTER_FLUSH_TIME) < .5) {
  741. setTimeout("sm_register_flush_process(document.getElementById('" + sm_register_node.id + "'), 0)", 100);
  742. return false;
  743. }
  744. if (sm_bypass == 0) {
  745. window.SM_REGISTER_FLUSH_TIME = false;
  746. window.SM_REGISTER_FLUSH_NODE = sm_register_node.id;
  747. }
  748. var sm_register_success = true;
  749. var sm_register_id = sm_register_node.id;
  750. var sm_register_value = sm_register_node.value;
  751. var sm_register_value_length = sm_register_value.length;
  752. if (sm_register_value_length == 0) {
  753. sm_register_notice(sm_register_node, 0, "", sm_bypass);
  754. } else if (sm_register_id == "sm_register_fullname") {
  755. if (sm_register_success == true) {
  756. var sm_counter = 0;
  757. while (sm_counter < sm_register_value_length) {
  758. if (sm_register_value[sm_counter] != " " && sm_register_value[sm_counter] != "'" && sm_register_value[sm_counter].toUpperCase() == sm_register_value[sm_counter].toLowerCase()) {
  759. sm_register_notice(sm_register_node, 2, "Only letters and spaces allowed.", sm_bypass);
  760. sm_register_success = false;
  761. break;
  762. }
  763. sm_counter++;
  764. }
  765. }
  766. if (sm_register_success == true && sm_register_value_length < 2) {
  767. sm_register_notice(sm_register_node, 2, "Minimum length is 2 characters.", sm_bypass);
  768. sm_register_success = false;
  769. }
  770. if (sm_register_success == true && sm_register_value_length > 20) {
  771. sm_register_notice(sm_register_node, 2, "Maximum length is 20 characters.", sm_bypass);
  772. sm_register_success = false;
  773. }
  774. if (sm_register_success == true) {
  775. sm_register_notice(sm_register_node, 1, "", sm_bypass);
  776. }
  777. } else if (sm_register_id == "sm_register_username") {
  778. if (sm_register_success == true) {
  779. var sm_counter = 0;
  780. while (sm_counter < sm_register_value_length) {
  781. if (sm_register_value[sm_counter] != parseFloat(sm_register_value[sm_counter]) && sm_register_value[sm_counter].toUpperCase() == sm_register_value[sm_counter].toLowerCase()) {
  782. sm_register_notice(sm_register_node, 2, "Only letters and numbers allowed.", sm_bypass);
  783. sm_register_success = false;
  784. break;
  785. }
  786. sm_counter++;
  787. }
  788. }
  789. if (sm_register_success == true && sm_register_value_length < 5) {
  790. sm_register_notice(sm_register_node, 2, "Minimum length is 5 characters.", sm_bypass);
  791. sm_register_success = false;
  792. }
  793. if (sm_register_success == true && sm_register_value_length > 20) {
  794. sm_register_notice(sm_register_node, 2, "Maximum length is 20 characters.", sm_bypass);
  795. sm_register_success = false;
  796. }
  797. if (sm_register_success == true) {
  798. sm_register_return_http_protocol(sm_register_node.id, sm_register_value, sm_bypass);
  799. }
  800. } else if (sm_register_id == "sm_register_email") {
  801. if (sm_register_success == true && sm_register_value.search(/@/) == -1) {
  802. sm_register_notice(sm_register_node, 2, "Please enter a valid email.", sm_bypass);
  803. sm_register_success = false;
  804. }
  805. if (sm_register_success == true && sm_register_value_length < 2) {
  806. sm_register_notice(sm_register_node, 2, "Minimum length is 2 characters.", sm_bypass);
  807. sm_register_success = false;
  808. }
  809. if (sm_register_success == true && sm_register_value_length > 30) {
  810. sm_register_notice(sm_register_node, 2, "Maximum length is 30 characters.", sm_bypass);
  811. sm_register_success = false;
  812. }
  813. if (sm_register_success == true) {
  814. sm_register_notice(sm_register_node, 1, "", sm_bypass);
  815. }
  816. } else if (sm_register_id == "sm_register_password") {
  817. if (document.getElementById('sm_register_password_again').value.length != 0 && sm_register_value != document.getElementById('sm_register_password_again').value) {
  818. sm_register_notice(document.getElementById('sm_register_password_again'), 2, "Passwords do not match. Please retype.", sm_bypass);
  819. } else if (document.getElementById('sm_register_password_again').value.length != 0) {
  820. sm_register_notice(document.getElementById('sm_register_password_again'), 1, "", sm_bypass);
  821. }
  822. if (sm_register_success == true && sm_register_value_length < 5) {
  823. sm_register_notice(sm_register_node, 2, "Minimum length is 5 characters.", sm_bypass);
  824. sm_register_success = false;
  825. }
  826. if (sm_register_success == true && sm_register_value_length > 50) {
  827. sm_register_notice(sm_register_node, 2, "Maximum length is 50 characters.", sm_bypass);
  828. sm_register_success = false;
  829. }
  830. if (sm_register_success == true) {
  831. sm_register_notice(sm_register_node, 1, "", sm_bypass);
  832. }
  833. } else if (sm_register_id == "sm_register_password_again") {
  834. if (sm_register_value != document.getElementById('sm_register_password').value) {
  835. sm_register_notice(sm_register_node, 2, "Passwords do not match. Please retype.", sm_bypass);
  836. } else {
  837. sm_register_notice(sm_register_node, 1, "", sm_bypass);
  838. }
  839. } else if (sm_register_id == "sm_register_captcha") {
  840. if (sm_register_success == true && sm_register_value_length != 6) {
  841. sm_register_notice(sm_register_node, 2, "Captcha code contains 6 characters, not " + sm_register_value_length + ".", sm_bypass);
  842. sm_register_success = false;
  843. }
  844. if (sm_register_success == true) {
  845. sm_register_return_http_protocol(sm_register_node.id, sm_register_value, sm_bypass);
  846. }
  847. }
  848. }
  849.  
  850. function sm_register_set() {
  851. window.SM_REGISTER_FLUSH_TIME = false;
  852. window.SM_REGISTER_FLUSH_NODE = false;
  853. window.SM_REGISTER_SUCCESS_ARRAY = { "sm_register_fullname": false, "sm_register_username": false, "sm_register_email": false, "sm_register_password": false, "sm_register_password_again": false, "sm_register_captcha": false };
  854. for (sm_key in window.SM_REGISTER_SUCCESS_ARRAY) {
  855. var sm_register_node = document.getElementById(sm_key);
  856. sm_register_node.value = "";
  857. sm_register_notice(sm_register_node, 0, "", 1);
  858. }
  859. sm_register_check_clear();
  860. window.SM_REGISTER_FLUSH_TIME = false;
  861. window.SM_REGISTER_FLUSH_NODE = false;
  862. }
  863.  
  864. function sm_login_set() {
  865. document.getElementById('sm_login_submit_loader').style.display = "none";
  866. document.getElementById('sm_login_submit_success').style.display = "none";
  867. document.getElementById('sm_login_submit_container').style.display = "block";
  868. document.getElementById('sm_login_error').style.display = "none";
  869. document.getElementById('sm_login_prompt').style.display = "block";
  870. document.getElementById('sm_login_username').value = "";
  871. document.getElementById('sm_login_password').value = "";
  872. document.getElementById('sm_login_remember').checked = false;
  873. document.getElementById('sm_login_username').style.borderColor = "#ead9ff";
  874. document.getElementById('sm_login_password').style.borderColor = "#ead9ff";
  875. }
  876.  
  877. function sm_register_launch() {
  878. scroll(0, 0);
  879. sm_element_add("sm_register_main_container", 3, 100);
  880. sm_element_add("sm_full_cover_element", 8, 90);
  881. document.getElementById('sm_register_fullname').focus();
  882. }
  883.  
  884. function sm_register_remove() {
  885. sm_element_remove("sm_register_main_container", 3, 100);
  886. sm_element_remove("sm_full_cover_element", 8, 90);
  887. setTimeout("sm_register_set();", 800);
  888. }
  889.  
  890. function sm_login_launch() {
  891. scroll(0, 0);
  892. sm_element_add("sm_login_main_container", 3, 100);
  893. sm_element_add("sm_full_cover_element", 8, 90);
  894. document.getElementById('sm_login_username').focus();
  895. }
  896.  
  897. function sm_login_remove() {
  898. sm_element_remove("sm_login_main_container", 3, 100);
  899. sm_element_remove("sm_full_cover_element", 8, 90);
  900. setTimeout("sm_login_set();", 800);
  901. }
  902.  
  903. function sm_terms_launch() {
  904. scroll(0, 0);
  905. sm_element_add("sm_terms_main_container", 3, 100);
  906. if (document.getElementById('sm_full_cover_element').style.display == "none") {
  907. sm_element_add("sm_full_cover_element", 8, 90);
  908. }
  909. }
  910.  
  911. function sm_terms_remove() {
  912. sm_element_remove("sm_terms_main_container", 3, 100);
  913. if (document.getElementById('sm_register_main_container').style.display == "none") {
  914. sm_element_remove("sm_full_cover_element", 8, 90);
  915. }
  916. }
  917.  
  918. function sm_login_process(sm_user_array_flat) {
  919. window.SM_USER_ARRAY = true;
  920. var sm_user_array_temp = sm_user_array_flat.split("SM_SUB_DIVIDE");
  921. for (sm_key in sm_user_array_temp) {
  922. var sm_user_array_sub = sm_user_array_temp[sm_key].split("SM_SUB_SUB_DIVIDE");
  923. eval("window." + sm_user_array_sub[0] + " = '" + sm_user_array_sub[1] + "'");
  924. }
  925. for (sm_entry_key in window.SM_ENTRY_ARRAY) {
  926. eval(window.SM_ENTRY_ARRAY[sm_entry_key]);
  927. }
  928. if (window.SM_POST_ARRAY == true && window.SM_USER_ID == window.SM_POST_USER_ID && 1 == 2) {
  929. window.SM_POST_PART = false;
  930. document.getElementById('sm_post_part_3').style.display = "none";
  931. document.getElementById('sm_post_part_2').style.display = "none";
  932. document.getElementById('sm_post_part_1').style.display = "inline";
  933. } else if (window.SM_POST_ARRAY == false && 1 == 2) {
  934. window.SM_POST_PART = true;
  935. document.getElementById('sm_post_part_3').style.display = "none";
  936. document.getElementById('sm_post_part_2').style.display = "inline";
  937. document.getElementById('sm_post_part_1').style.display = "none";
  938. }
  939. sm_registerbar_remove();
  940. if (window.SM_USER_PARTNER == 1) {
  941. if (window.SM_USER_PLUS == 1) {
  942. document.getElementById('sm_footer_user_part').innerHTML = "<span class=\"sm_footer_nav_logout\" onclick=\"sm_logout_process();\" onmouseover=\"this.style.cursor = 'pointer'\">LOGOUT</span>|<span style=\"font-size:12px;font-weight:bold;\">" + window.SM_USERNAME + "</span>&nbsp<span style=\"position:relative;font-weight:bold;background-color:#39F;padding:4px;-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; text-transform: uppercase;\">Plus</span><span style=\"position:relative;font-weight:bold;background-color:#009900;color:#fff;padding:4px;-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; text-transform: uppercase;\">Partner</span>";
  943. } else {
  944. document.getElementById('sm_footer_user_part').innerHTML = "<span style=\"font-size:12px;font-weight:bold;text-transform: uppercase;\">" + window.SM_USERNAME + "</span> <span style=\"position:relative;font-weight:bold;background-color:#009900;color:#fff;padding:4px;-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; text-transform: uppercase;\">Partner</span> |<span class=\"sm_footer_nav_logout\" onclick=\"sm_logout_process();\" onmouseover=\"this.style.cursor = 'pointer'\">LOGOUT</span>";
  945. }
  946. } else if (window.SM_USER_PLUS == 1) {
  947. document.getElementById('sm_footer_user_part').innerHTML = "<span style=\"font-size:12px;font-weight:bold;text-transform: uppercase;\">" + window.SM_USERNAME + "</span> <span style=\"position:relative;font-weight:bold;background-color:#39F;padding:4px;-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; text-transform: uppercase;\">Plus</span> |<span class=\"sm_footer_nav_logout\" onclick=\"sm_logout_process();\" onmouseover=\"this.style.cursor = 'pointer'\">LOGOUT</span>";
  948. } else {
  949. document.getElementById('sm_footer_user_part').innerHTML = "<span style=\"font-size:12px;font-weight:bold;text-transform: uppercase;\">" + window.SM_USERNAME + "</span> <span style=\"position:relative;font-weight:bold;background-color:#9900cc;color:#fff;padding:4px;-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; text-transform: uppercase;\">Standard</span> |<span class=\"sm_footer_nav_logout\" onclick=\"sm_logout_process();\" onmouseover=\"this.style.cursor = 'pointer'\">LOGOUT</span>";
  950. }
  951. if (window.SM_USER_SETTINGS_SAVE.length > 0 && document.getElementById('sm_check_save_settings_visual')) {
  952. document.getElementById('sm_check_save_settings_visual').checked = true;
  953. var sm_settings_change = false;
  954. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_QUESTION_AVOID/) != -1) {
  955. if (document.getElementById("sm_check_question_avoid_visual").checked != true) {
  956. var sm_settings_change = true;
  957. }
  958. document.getElementById("sm_check_question_avoid_visual").checked = true;
  959. } else {
  960. if (document.getElementById("sm_check_question_avoid_visual").checked != false) {
  961. var sm_settings_change = true;
  962. }
  963. document.getElementById("sm_check_question_avoid_visual").checked = false;
  964. }
  965. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_EXCLAMATION_AVOID/) != -1) {
  966. if (document.getElementById("sm_check_exclamation_avoid_visual").checked != true) {
  967. var sm_settings_change = true;
  968. }
  969. document.getElementById("sm_check_exclamation_avoid_visual").checked = true;
  970. } else {
  971. if (document.getElementById("sm_check_exclamation_avoid_visual").checked != false) {
  972. var sm_settings_change = true;
  973. }
  974. document.getElementById("sm_check_exclamation_avoid_visual").checked = false;
  975. }
  976. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_QUOTE_AVOID/) != -1) {
  977. if (document.getElementById("sm_check_quote_avoid_visual").checked != true) {
  978. var sm_settings_change = true;
  979. }
  980. document.getElementById("sm_check_quote_avoid_visual").checked = true;
  981. } else {
  982. if (document.getElementById("sm_check_quote_avoid_visual").checked != false) {
  983. var sm_settings_change = true;
  984. }
  985. document.getElementById("sm_check_quote_avoid_visual").checked = false;
  986. }
  987. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_HEAT_MAP/) != -1) {
  988. if (document.getElementById("sm_check_heat_map_visual").checked != true) {
  989. var sm_settings_change = true;
  990. }
  991. document.getElementById("sm_check_heat_map_visual").checked = true;
  992. } else {
  993. if (document.getElementById("sm_check_heat_map_visual").checked != false) {
  994. var sm_settings_change = true;
  995. }
  996. document.getElementById("sm_check_heat_map_visual").checked = false;
  997. }
  998. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_QUICK_TRANSITIONS/) != -1) {
  999. if (document.getElementById("sm_check_quick_transitions_visual").checked != true) {
  1000. var sm_settings_change = true;
  1001. }
  1002. if (window.SM_QUICK_TRANSITIONS_STATE == false) {
  1003. window.SM_QUICK_TRANSITIONS_STATE = true;
  1004. sm_quick_transitions_update();
  1005. }
  1006. } else {
  1007. if (document.getElementById("sm_check_quick_transitions_visual").checked != false) {
  1008. var sm_settings_change = true;
  1009. }
  1010. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1011. window.SM_QUICK_TRANSITIONS_STATE = false;
  1012. sm_quick_transitions_update();
  1013. }
  1014. }
  1015. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_SPECIFY_TOPIC/) != -1) {
  1016. if (document.getElementById("sm_check_specify_topic_visual").checked != true) {
  1017. var sm_settings_change = true;
  1018. }
  1019. document.getElementById("sm_check_specify_topic_visual").checked = true;
  1020. if (window.SM_SPECIFY_TOPIC_STATE == 0) {
  1021. window.SM_SPECIFY_TOPIC_STATE = 1;
  1022. sm_specify_topic_add();
  1023. sm_specify_topic_update();
  1024. }
  1025. } else {
  1026. if (document.getElementById("sm_check_specify_topic_visual").checked != false) {
  1027. var sm_settings_change = true;
  1028. }
  1029. if (window.SM_SPECIFY_TOPIC_STATE == 1 && window.SM_KEYWORD_ARRAY.length != 0) {
  1030. sm_specify_topic_indeterminate();
  1031. } else if (window.SM_SPECIFY_TOPIC_STATE == 1) {
  1032. window.SM_SPECIFY_TOPIC_STATE = 0;
  1033. sm_specify_topic_remove();
  1034. sm_specify_topic_update();
  1035. document.getElementById("sm_check_specify_topic_visual").checked = false;
  1036. }
  1037. }
  1038. if (sm_settings_change == true) {
  1039. sm_resummarize_process(0);
  1040. }
  1041. }
  1042. }
  1043.  
  1044. function sm_logout_process() {
  1045. if (typeof window.SM_POST_PART != "undefined") {
  1046. if (window.SM_POST_OWN == true && window.SM_POST_PART == false && 1 == 2) {
  1047. document.getElementById('sm_post_part_3').style.display = "inline";
  1048. document.getElementById('sm_post_part_2').style.display = "none";
  1049. document.getElementById('sm_post_part_1').style.display = "none";
  1050. } else if (1 == 2) {
  1051. document.getElementById('sm_post_part_3').style.display = "none";
  1052. document.getElementById('sm_post_part_2').style.display = "inline";
  1053. document.getElementById('sm_post_part_1').style.display = "none";
  1054. }
  1055. }
  1056. window.SM_USER_ARRAY = false;
  1057. for (sm_recovery_key in window.SM_RECOVERY_ARRAY) {
  1058. eval(window.SM_RECOVERY_ARRAY[sm_recovery_key]);
  1059. }
  1060. for (sm_exit_key in window.SM_EXIT_ARRAY) {
  1061. eval(window.SM_EXIT_ARRAY[sm_exit_key]);
  1062. }
  1063. document.getElementById('sm_footer_user_part').innerHTML = "<span class=\"sm_footer_nav_register\" onclick=\"sm_register_launch();\" onmouseover=\"this.style.cursor = 'pointer'\" style=\"font-weight: bold;\">REGISTER</span>|<span class=\"sm_footer_nav_login\" onclick=\"sm_login_launch();\" onmouseover=\"this.style.cursor = 'pointer'\" style=\"font-weight: bold;\">LOGIN</span>";
  1064. if (document.getElementById('sm_check_save_settings_visual')) {
  1065. document.getElementById('sm_check_save_settings_visual').checked = false;
  1066. }
  1067. sm_logout_submit_http_protocol();
  1068. }
  1069.  
  1070. function sm_recovery_remove(sm_recovery_function) {
  1071. for (sm_recovery_key in window.SM_RECOVERY_ARRAY) {
  1072. if (window.SM_RECOVERY_ARRAY[sm_recovery_key] == sm_recovery_function) {
  1073. window.SM_RECOVERY_ARRAY.splice(sm_recovery_key, 1);
  1074. }
  1075. }
  1076. }
  1077.  
  1078. function sm_user_validate(sm_function, sm_fail_function, sm_recovery_function, sm_access_level) {
  1079. if (sm_access_level == 1 && window.SM_USER_ARRAY == false) {
  1080. sm_registerbar_load(sm_access_level);
  1081. if (sm_fail_function !== false) {
  1082. eval(sm_fail_function);
  1083. }
  1084. } else if (sm_access_level == 2 && (window.SM_USER_ARRAY == false || window.SM_USER_PLUS == false)) {
  1085. sm_registerbar_load(sm_access_level);
  1086. if (sm_fail_function !== false) {
  1087. eval(sm_fail_function);
  1088. }
  1089. } else {
  1090. if (sm_recovery_function !== false) {
  1091. window.SM_RECOVERY_ARRAY.push(sm_recovery_function);
  1092. }
  1093. if (sm_function !== false) {
  1094. eval(sm_function);
  1095. }
  1096. }
  1097. }
  1098.  
  1099. function sm_user_array_populate() {
  1100. window.SM_USER_ARRAY = false;
  1101. if (window.SM_USER_ARRAY == true) {
  1102. for (sm_entry_key in window.SM_ENTRY_ARRAY) {
  1103. eval(window.SM_ENTRY_ARRAY[sm_entry_key]);
  1104. }
  1105. } else {
  1106. for (sm_exit_key in window.SM_EXIT_ARRAY) {
  1107. eval(window.SM_EXIT_ARRAY[sm_exit_key]);
  1108. }
  1109. }
  1110. }
  1111.  
  1112. function sm_user_control(sm_entry_array, sm_exit_array) {
  1113. if (typeof sm_entry_array == "undefined") {
  1114. sm_entry_array = new Array();
  1115. }
  1116. if (typeof sm_exit_array == "undefined") {
  1117. sm_exit_array = new Array();
  1118. }
  1119. if (typeof window.SM_ENTRY_ARRAY == "undefined") {
  1120. window.SM_ENTRY_ARRAY = new Array();
  1121. }
  1122. if (typeof window.SM_EXIT_ARRAY == "undefined") {
  1123. window.SM_EXIT_ARRAY = new Array();
  1124. }
  1125. for (sm_entry_key in sm_entry_array) {
  1126. window.SM_ENTRY_ARRAY.push(sm_entry_array[sm_entry_key]);
  1127. }
  1128. for (sm_exit_key in sm_exit_array) {
  1129. window.SM_EXIT_ARRAY.push(sm_exit_array[sm_exit_key]);
  1130. }
  1131. }
  1132.  
  1133. function sm_user_run() {
  1134. window.SM_RECOVERY_ARRAY = new Array();
  1135. window.SM_REGISTER_TIME = null;
  1136. sm_register_set();
  1137. sm_user_control();
  1138. }
  1139. </script>
  1140. <style type="text/css">
  1141. body {
  1142. height: 100%;
  1143. }
  1144.  
  1145. div.sm_full_cover {
  1146. position: fixed;
  1147. top: 0;
  1148. left: 0;
  1149. width: 100%;
  1150. height: 100%;
  1151. background-color: #333;
  1152. z-index: 9000;
  1153. }
  1154.  
  1155. .sm_block_put {
  1156. position: relative;
  1157. top: 1px;
  1158. height: 26px;
  1159. }
  1160. </style>
  1161. <div id="sm_full_cover_element" class="sm_full_cover" style="display:none;"></div>
  1162. <div id="sm_register_main_container" align="center" style="display:none;position:absolute;top:0;left:0;width:100%;">
  1163. <div style="position:relative;top:150px;background-color:#FFF;width:350px;height:340px;border-style:solid;border-width:0px;border-color:#333;z-index:9010;opacity:1;border-radius: 20px 20px 20px 20px; -moz-border-radius: 20px 20px 20px 20px; -webkit-border-radius: 20px 20px 20px 20px; border: 0px solid #000000;">
  1164. <div id="sm_register_success_container" align="left" style="display:none;position:absolute;top:20px;left:20px;width:305px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;"><span style="font-weight:bold;font-size:20px;">Success!</span>
  1165. <br />You've been successfully registered and logged in as <span id="sm_register_success_username" style="font-weight:bold;"></span>.
  1166. <br />
  1167. <br />You can now access more features.
  1168. <br />
  1169. <br />You completed the registration form in <span id="sm_register_success_time" style="font-weight:bold;"></span> seconds.
  1170. <br />
  1171. <br />The average is <span id="sm_register_success_time_average" style="font-weight:bold;"></span> seconds.
  1172. <br />
  1173. <br />Please be aware that some features are currently in beta.
  1174. <div align="right" style="position:relative;top:6px;">
  1175. <input id="sm_register_button" type="button" style="position:relative;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:18px;font-weight:bold;background-color:#1C7BFF; border-bottom-color:#0061E8; border-left-color:#3085FC; border-right-color:#0061E8; border-top-color:#3085FC;width:160px;height:30px;" onclick="sm_register_remove();" onmouseover="this.style.cursor = 'pointer'" value="CONTINUE" />
  1176. </div>
  1177. </div>
  1178. <div id="sm_register_form_container" align="left" style="position:absolute;top:20px;left:20px;width:305px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;"><span style="font-size:14px;">Registration is free, quick, and gives you access to more features.</span>
  1179. <br />
  1180. <br />
  1181. <form id="sm_register_form" name="sm_register_form" method="post">
  1182. <div align="right" style="position:absolute;left:0;">
  1183. <div class="sm_block_put">Full Name:</div>
  1184. <div class="sm_block_put">Username:</div>
  1185. <div class="sm_block_put">Valid Email:</div>
  1186. <div class="sm_block_put">Password:</div>
  1187. <div class="sm_block_put">Password Again:</div>
  1188. <div class="sm_block_put" style="top:5px;">Captcha code:
  1189. <br /><span style="position:relative;top:-5px;font-size:12px;color:#00F;" onclick="document.getElementById('sm_register_captcha_image').src = 'https://smmry.com/sm_captcha/securimage_show.php?' + Math.random(); sm_register_flush(document.getElementById('sm_register_captcha')); return false;" onmouseover="this.style.cursor = 'pointer'">[refresh]</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
  1190. </div>
  1191. <div align="left" style="position:absolute;left:292px;width:500px;">
  1192. <div id="sm_register_fullname_notice" class="sm_block_put"></div>
  1193. <div id="sm_register_username_notice" class="sm_block_put"></div>
  1194. <div id="sm_register_email_notice" class="sm_block_put"></div>
  1195. <div id="sm_register_password_notice" class="sm_block_put"></div>
  1196. <div id="sm_register_password_again_notice" class="sm_block_put"></div>
  1197. <div id="sm_register_captcha_notice" class="sm_block_put" style="top:29px;"></div>
  1198. </div>
  1199. <div align="left" style="position:absolute;right:0;">
  1200. <div class="sm_block_put">
  1201. <input name="sm_register_fullname" id="sm_register_fullname" type="text" style="width:140px;border-style:solid;border-width:2px;border-color:#ead9ff;" onkeyup="sm_register_flush(this);" />
  1202. </div>
  1203. <div class="sm_block_put">
  1204. <input name="sm_register_username" id="sm_register_username" type="text" style="position:relative;width:140px;border-style:solid;border-width:2px;border-color:#ead9ff;" onkeyup="sm_register_flush(this);" />
  1205. </div>
  1206. <div class="sm_block_put">
  1207. <input name="sm_register_email" id="sm_register_email" type="text" style="position:relative;width:140px;border-style:solid;border-width:2px;border-color:#ead9ff;" onkeyup="sm_register_flush(this);" />
  1208. </div>
  1209. <div class="sm_block_put">
  1210. <input name="sm_register_password" id="sm_register_password" type="password" style="position:relative;width:140px;border-style:solid;border-width:2px;border-color:#ead9ff;" onkeyup="sm_register_flush(this);" />
  1211. </div>
  1212. <div class="sm_block_put">
  1213. <input name="sm_register_password_again" id="sm_register_password_again" type="password" style="position:relative;width:140px;border-style:solid;border-width:2px;border-color:#ead9ff;" onkeyup="sm_register_flush(this);" />
  1214. <br /><img style="position:relative;top:-5px;z-index:-100;" id="sm_register_captcha_image" src="https://smmry.com/sm_captcha/securimage_show.php" alt="CAPTCHA Image" /></div>
  1215. <div class="sm_block_put" style="top:28px;">
  1216. <input name="sm_register_captcha" id="sm_register_captcha" type="text" style="position:relative;width:140px;border-style:solid;border-width:2px;border-color:#ead9ff;" onkeyup="sm_register_flush(this);" />
  1217. </div>
  1218. <br />
  1219. <br />
  1220. <div style="position:relative;top:-12px;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;">
  1221. <input name="sm_check_terms" id="sm_check_terms" type="checkbox" style="position:relative;left:-4px;outline-style:solid;outline-width:0px;outline-color:red;" onclick="sm_register_check_clear();" /><span style="position:relative;left:-4px;"> I agree to these <span style="text-decoration:underline;color:#00F;" onclick="sm_terms_launch()" onmouseover="this.style.cursor = 'pointer';">terms</span>.</span>
  1222. </div>
  1223. <br />
  1224. <div align="center" id="sm_register_submit_loader" style="display:none;position:absolute;top:222px;width:100%;left:-80px;"><img src="/sm_images/sm_load_twirl.gif" /></div>
  1225. <div align="right" id="sm_register_submit_container" style="position:absolute;top:206px;width:280px;left:-122px;">
  1226. <input id="sm_register_clear" type="button" style="position:relative;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:18px; font-weight:bold; background-color:#f2ec43; border-bottom-color:#BDBD00; border-left-color:#FFFF24; border-right-color:#BDBD00; border-top-color:#FFFF24; width:110px; height:30px;" onclick="sm_register_remove();" onmouseover="this.style.cursor = 'pointer'" value="CANCEL" />&nbsp;
  1227. <input id="sm_register_button" type="button" style="position:relative;;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:18px;font-weight:bold;background-color:#FF6600;border-bottom-color:#BDBD00;border-left-color:#FF9933;border-right-color:#BDBD00;border-top-color:#FF9933;width:160px;height:30px;" onclick="sm_register_submit();" onmouseover="this.style.cursor = 'pointer'" value="REGISTER" />
  1228. </div>
  1229. </div>
  1230. </form>
  1231. </div>
  1232. </div>
  1233. </div>
  1234. <div id="sm_login_main_container" align="center" style="display:none;position:absolute;top:0;left:0;width:100%;">
  1235. <div style="position:relative;top:150px;background-color:#FFF;width:290px;height:170px;border-style:solid;border-width:0px;border-color:#333;z-index:9010;opacity:1;border-radius: 20px 20px 20px 20px; -moz-border-radius: 20px 20px 20px 20px; -webkit-border-radius: 20px 20px 20px 20px; border: 0px solid #000000;">
  1236. <div id="sm_login_form_container" align="left" style="position:absolute;top:20px;left:20px;width:250px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;"><span id="sm_login_prompt" style="font-size:14px;">Enter your login credentials below.</span><span id="sm_login_error" style="display:none;font-size:14px;font-weight:bold;color:#F00;">Incorrect login credentials.</span>
  1237. <form id="sm_login_form" name="sm_login_form" style="position:relative;top:10px;" method="post">
  1238. <div align="right" style="position:absolute;left:10px;">
  1239. <div class="sm_block_put">Username:</div>
  1240. <div class="sm_block_put">Password:
  1241. <br /><span style="font-size:12px;color:#00F;" onclick="alert('Please contact us via the contact form to recover your account')" onmouseover="this.style.cursor = 'pointer'">(Forgot?)</span>&nbsp;&nbsp;</div>
  1242. </div>
  1243. <div align="left" style="position:absolute;right:20px;">
  1244. <div class="sm_block_put">
  1245. <input name="sm_login_username" id="sm_login_username" type="text" style="position:relative;width:120px;border-style:solid;border-width:2px;border-color:#ead9ff;" onkeyup="sm_login_flush(this);" />
  1246. </div>
  1247. <div class="sm_block_put">
  1248. <input name="sm_login_password" id="sm_login_password" type="password" style="position:relative;width:120px;border-style:solid;border-width:2px;border-color:#ead9ff;" onkeyup="sm_login_flush(this);" />
  1249. </div>
  1250. <div style="position:relative;top:0px;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;">
  1251. <input name="sm_login_remember" id="sm_login_remember" type="checkbox" style="position:relative;left:16px;outline-style:solid;outline-width:0px;" checked /><span style="position:relative;left:16px;"> Remember me</span></div>
  1252. <br />
  1253. <div align="center" id="sm_login_submit_success" style="display:none;position:absolute;top:80px;width:100%;left:-40px;font-size:18px;font-weight:bold;">Success!</div>
  1254. <div align="center" id="sm_login_submit_loader" style="display:none;position:absolute;top:80px;width:100%;left:-40px;"><img src="/sm_images/sm_load_twirl.gif" /></div>
  1255. <div align="right" id="sm_login_submit_container" style="position:absolute;top:75px;width:250px;left:-124px;">
  1256. <input id="sm_login_clear" type="button" style="position:relative;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:18px; font-weight:bold; background-color:#f2ec43; border-bottom-color:#BDBD00; border-left-color:#FFFF24; border-right-color:#BDBD00; border-top-color:#FFFF24; width:110px; height:30px;" onclick="sm_login_remove();" onmouseover="this.style.cursor = 'pointer'" value="CANCEL" />&nbsp;
  1257. <input id="sm_login_button" type="button" style="position:relative;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:18px;font-weight:bold;background-color:#33cc00;border-bottom-color:#BDBD00;border-left-color:#33ff33;border-right-color:#BDBD00;border-top-color:#33ff33;width:100px;height:30px;" onclick="sm_login_submit();" onmouseover="this.style.cursor = 'pointer'" value="LOGIN" />
  1258. </div>
  1259. </div>
  1260. </form>
  1261. </div>
  1262. </div>
  1263. </div>
  1264. <div id="sm_terms_main_container" align="center" style="display:none;position:absolute;top:0;left:0;width:100%;">
  1265. <div style="position: relative; top: 145px; background-color: #FFF; width: 400px; height: 350px; z-index: 9020; opacity: 1; border-radius: 20px 20px 20px 20px; -moz-border-radius: 20px 20px 20px 20px; -webkit-border-radius: 20px 20px 20px 20px; border: 0px solid #000000;">
  1266. <div id="sm_terms_form_container" align="left" style="position:absolute;top:20px;left:20px;width:390px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;">
  1267. <div style="width:350px;height:260px;font-size:12px;overflow:auto;"><span style="font-size:14px;font-weight:bold;">1)</span> SMMRY.COM reserves the right to revoke access to this site at our discretion.
  1268. <br /><span style="font-size:14px;font-weight:bold;">2)</span> YOU will not make a clone of SMMRY.COM using the API.
  1269. <br /><span style="font-size:14px;font-weight:bold;">3)</span> SMMRY.COM reserves the right to alter these terms without explicit notification.
  1270. <br /><span style="font-size:14px;font-weight:bold;">4)</span> YOUR implicit use of this site binds you to these terms.</div>
  1271. <input id="sm_terms_clear" type="button" style="position:relative;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:18px; font-weight:bold; background-color:#f2ec43; border-bottom-color:#BDBD00; border-left-color:#FFFF24; border-right-color:#BDBD00; border-top-color:#FFFF24; width:110px; height:30px;" onclick="sm_terms_remove();" onmouseover="this.style.cursor = 'pointer'" value="CLOSE" />
  1272. </div>
  1273. </div>
  1274. </div>
  1275. <script type="text/javascript" src="https://smmry.com/qq.js"></script>
  1276. </head>
  1277.  
  1278. <body>
  1279. <script type="text/javascript">
  1280. window.sm_interlude_original = "SMMRY summarizes text to save you time.\n\nPaste an article, text or essay in this box and hit summarize; we'll return a shortened copy for you to read.\n\nYou can also summarize PDF and TXT documents by uploading a file or summarize online articles and webpages by pasting the URL below...";
  1281. window.sm_interlude_force_url = "Or paste a URL here.";
  1282.  
  1283. function numbersonly(e, decimal) {
  1284. var key;
  1285. var keychar;
  1286.  
  1287. if (window.event) {
  1288. key = window.event.keyCode;
  1289. } else if (e) {
  1290. key = e.which;
  1291. } else {
  1292. return true;
  1293. }
  1294. keychar = String.fromCharCode(key);
  1295.  
  1296. if ((key == null) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27)) {
  1297. return true;
  1298. } else if ((("0123456789").indexOf(keychar) > -1)) {
  1299. return true;
  1300. } else if (decimal && (keychar == ".")) {
  1301. return true;
  1302. } else
  1303. return false;
  1304. }
  1305.  
  1306. function sm_count_process(e) {
  1307. var key;
  1308. if (window.event)
  1309. key = window.event.keyCode; //IE
  1310. else
  1311. key = e.which; //firefox
  1312.  
  1313. if (key == 13)
  1314. return false;
  1315. return numbersonly(e, false);
  1316. }
  1317. document.onkeydown = sm_key_focus;
  1318.  
  1319. function sm_key_focus(e) {
  1320. var keycode;
  1321. if (window.event) keycode = window.event.keyCode;
  1322. else if (e) keycode = e.which;
  1323. if (window.SM_FLASHBAR_STATUS == true && window.SM_FLASHBAR_SELECTED == true && window.SM_FLASHBAR_BUSY == false && window.SM_FLASH_PROCESS_BLOCK == false) {
  1324. if (keycode == 8 || keycode == 37) {
  1325. sm_flashbar_character(null);
  1326. } else if (keycode == 13 || keycode == 39) {
  1327. sm_flashbar_character(" ");
  1328. } else if (keycode == 38) {
  1329. sm_flashbar_up();
  1330. } else if (keycode == 40) {
  1331. sm_flashbar_down();
  1332. }
  1333. }
  1334. if (keycode == 9 && document.getElementById('sm_full_cover_element').style.display == "none" && document.getElementById('sm_primary_interface').style.display == "none" && window.SM_SPECIFY_TOPIC_STATE > 0) {
  1335. if (window.SM_FLASHBAR_SELECTED == false) {
  1336. sm_flashbar_select();
  1337. sm_flashbar_activate();
  1338. setTimeout("document.getElementById('sm_flashbar_key_input').focus()", 1);
  1339. } else {
  1340. sm_flashbar_unselect();
  1341. if (window.SM_FLASHBAR_BUILD == "") {
  1342. sm_flashbar_reset();
  1343. }
  1344. document.getElementById('sm_flashbar_key_input').blur();
  1345. }
  1346. } else if (keycode == 13 && document.getElementById('sm_login_main_container').style.display == "block") {
  1347. sm_login_submit();
  1348. }
  1349. }
  1350.  
  1351. function sm_slide_a(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  1352. if (window.SM_SLIDE_ELEMENT_A != null && window.SM_SLIDE_ELEMENT_A != sm_target) {
  1353. setTimeout("sm_slide_a(\"" + sm_target + "\", " + sm_start + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", 300);
  1354. } else {
  1355. window.SM_SLIDE_ELEMENT_A = sm_target;
  1356. if (sm_vertical == 1) {
  1357. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1358. document.getElementById(sm_target).style.top = sm_end + "px";
  1359. } else {
  1360. document.getElementById(sm_target).style.top = sm_start + "px";
  1361. }
  1362. } else {
  1363. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1364. document.getElementById(sm_target).style.left = sm_start + "px";
  1365. } else {
  1366. document.getElementById(sm_target).style.left = sm_end + "px";
  1367. }
  1368. }
  1369. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1370. sm_slide_reset_a();
  1371. } else if ((sm_direction == 1 && sm_start < sm_end) || (sm_direction == -1 && sm_start > sm_end)) {
  1372. setTimeout("sm_slide_a(\"" + sm_target + "\", " + (sm_start + (sm_step * sm_direction)) + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", sm_speed);
  1373. } else {
  1374. setTimeout("sm_slide_reset_a()", 20);
  1375. }
  1376. }
  1377. }
  1378.  
  1379. function sm_slide_b(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  1380. if (window.SM_SLIDE_ELEMENT_B != null && window.SM_SLIDE_ELEMENT_B != sm_target) {
  1381. setTimeout("sm_slide_b(\"" + sm_target + "\", " + sm_start + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", 300);
  1382. } else {
  1383. window.SM_SLIDE_ELEMENT_B = sm_target;
  1384. if (sm_vertical == 1) {
  1385. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1386. document.getElementById(sm_target).style.top = sm_end + "px";
  1387. } else {
  1388. document.getElementById(sm_target).style.top = sm_start + "px";
  1389. }
  1390. } else {
  1391. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1392. document.getElementById(sm_target).style.left = sm_start + "px";
  1393. } else {
  1394. document.getElementById(sm_target).style.left = sm_end + "px";
  1395. }
  1396. }
  1397. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1398. sm_slide_reset_b();
  1399. } else if ((sm_direction == 1 && sm_start < sm_end) || (sm_direction == -1 && sm_start > sm_end)) {
  1400. setTimeout("sm_slide_b(\"" + sm_target + "\", " + (sm_start + (sm_step * sm_direction)) + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", sm_speed);
  1401. } else {
  1402. setTimeout("sm_slide_reset_b()", 20);
  1403. }
  1404. }
  1405. }
  1406.  
  1407. //reserved for slide bar
  1408. function sm_slide_c(sm_target, sm_instance_id, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  1409. if (window.SM_LOAD_SHADE_CONTINUE == false) {
  1410. return false;
  1411. }
  1412. if (sm_instance_id == 0) {
  1413. sm_instance_id = sm_random(1000000, 9999999);
  1414. window.SM_SLIDE_C_INSTANCE_ID = sm_instance_id;
  1415. sm_slide_reset_c();
  1416. } else if (sm_instance_id != window.SM_SLIDE_C_INSTANCE_ID) {
  1417. return false;
  1418. }
  1419. if (window.SM_SLIDE_ELEMENT_C != null && window.SM_SLIDE_ELEMENT_C != sm_target) {
  1420. setTimeout("sm_slide_c(\"" + sm_target + "\", \"" + sm_instance_id + "\", " + sm_start + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", 300);
  1421. } else {
  1422. window.SM_SLIDE_ELEMENT_C = sm_target;
  1423. if (sm_vertical == 1) {
  1424. document.getElementById(sm_target).style.top = sm_start + "px";
  1425. } else {
  1426. document.getElementById(sm_target).style.left = sm_start + "px";
  1427. }
  1428. if ((sm_direction == 1 && sm_start < sm_end) || (sm_direction == -1 && sm_start > sm_end)) {
  1429. setTimeout("sm_slide_c(\"" + sm_target + "\", \"" + sm_instance_id + "\", " + (sm_start + (sm_step * sm_direction)) + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", sm_speed);
  1430. } else {
  1431. setTimeout("sm_slide_reset_c()", 20);
  1432. }
  1433. }
  1434. }
  1435.  
  1436. function sm_slide_d(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  1437. if (window.SM_SLIDE_ELEMENT_D != null && window.SM_SLIDE_ELEMENT_D != sm_target) {
  1438. setTimeout("sm_slide_d(\"" + sm_target + "\", " + sm_start + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", 300);
  1439. } else {
  1440. window.SM_SLIDE_ELEMENT_D = sm_target;
  1441. if (sm_vertical == 1) {
  1442. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1443. document.getElementById(sm_target).style.top = sm_end + "px";
  1444. } else {
  1445. document.getElementById(sm_target).style.top = sm_start + "px";
  1446. }
  1447. } else {
  1448. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1449. document.getElementById(sm_target).style.left = sm_start + "px";
  1450. } else {
  1451. document.getElementById(sm_target).style.left = sm_end + "px";
  1452. }
  1453. }
  1454. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1455. sm_slide_reset_d();
  1456. } else if ((sm_direction == 1 && sm_start < sm_end) || (sm_direction == -1 && sm_start > sm_end)) {
  1457. setTimeout("sm_slide_d(\"" + sm_target + "\", " + (sm_start + (sm_step * sm_direction)) + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", sm_speed);
  1458. } else {
  1459. setTimeout("sm_slide_reset_d()", 20);
  1460. }
  1461. }
  1462. }
  1463.  
  1464. function sm_slide_e(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  1465. if (window.SM_SLIDE_ELEMENT_E != null && window.SM_SLIDE_ELEMENT_E != sm_target) {
  1466. setTimeout("sm_slide_e(\"" + sm_target + "\", " + sm_start + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", 300);
  1467. } else {
  1468. window.SM_SLIDE_ELEMENT_E = sm_target;
  1469. if (sm_vertical == 1) {
  1470. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1471. document.getElementById(sm_target).style.top = sm_end + "px";
  1472. } else {
  1473. document.getElementById(sm_target).style.top = sm_start + "px";
  1474. }
  1475. } else {
  1476. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1477. document.getElementById(sm_target).style.left = sm_start + "px";
  1478. } else {
  1479. document.getElementById(sm_target).style.left = sm_end + "px";
  1480. }
  1481. }
  1482. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1483. sm_slide_reset_e();
  1484. } else if ((sm_direction == 1 && sm_start < sm_end) || (sm_direction == -1 && sm_start > sm_end)) {
  1485. setTimeout("sm_slide_e(\"" + sm_target + "\", " + (sm_start + (sm_step * sm_direction)) + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", sm_speed);
  1486. } else {
  1487. setTimeout("sm_slide_reset_e()", 20);
  1488. }
  1489. }
  1490. }
  1491.  
  1492. function sm_slide_f(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  1493. if (window.SM_SLIDE_ELEMENT_F != null && window.SM_SLIDE_ELEMENT_F != sm_target) {
  1494. setTimeout("sm_slide_f(\"" + sm_target + "\", " + sm_start + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", 300);
  1495. } else {
  1496. window.SM_SLIDE_ELEMENT_F = sm_target;
  1497. if (sm_vertical == 1) {
  1498. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1499. document.getElementById(sm_target).style.top = sm_end + "px";
  1500. } else {
  1501. document.getElementById(sm_target).style.top = sm_start + "px";
  1502. }
  1503. } else {
  1504. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1505. document.getElementById(sm_target).style.left = sm_start + "px";
  1506. } else {
  1507. document.getElementById(sm_target).style.left = sm_end + "px";
  1508. }
  1509. }
  1510. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1511. sm_slide_reset_f();
  1512. } else if ((sm_direction == 1 && sm_start < sm_end) || (sm_direction == -1 && sm_start > sm_end)) {
  1513. setTimeout("sm_slide_f(\"" + sm_target + "\", " + (sm_start + (sm_step * sm_direction)) + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", sm_speed);
  1514. } else {
  1515. setTimeout("sm_slide_reset_f()", 20);
  1516. }
  1517. }
  1518. }
  1519.  
  1520. function sm_slide_g(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  1521. if (window.SM_SLIDE_ELEMENT_G != null && window.SM_SLIDE_ELEMENT_G != sm_target) {
  1522. setTimeout("sm_slide_g(\"" + sm_target + "\", " + sm_start + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", 300);
  1523. } else {
  1524. window.SM_SLIDE_ELEMENT_G = sm_target;
  1525. if (sm_vertical == 1) {
  1526. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1527. document.getElementById(sm_target).style.top = sm_end + "px";
  1528. } else {
  1529. document.getElementById(sm_target).style.top = sm_start + "px";
  1530. }
  1531. } else {
  1532. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1533. document.getElementById(sm_target).style.left = sm_start + "px";
  1534. } else {
  1535. document.getElementById(sm_target).style.left = sm_end + "px";
  1536. }
  1537. }
  1538. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1539. sm_slide_reset_g();
  1540. } else if ((sm_direction == 1 && sm_start < sm_end) || (sm_direction == -1 && sm_start > sm_end)) {
  1541. setTimeout("sm_slide_g(\"" + sm_target + "\", " + (sm_start + (sm_step * sm_direction)) + ", " + sm_end + ", " + sm_direction + ", " + sm_speed + ", " + sm_step + ", " + sm_vertical + ");", sm_speed);
  1542. } else {
  1543. setTimeout("sm_slide_reset_g()", 20);
  1544. }
  1545. }
  1546. }
  1547.  
  1548. function sm_slide_reset_a() {
  1549. window.SM_SLIDE_ELEMENT_A = null;
  1550. }
  1551.  
  1552. function sm_slide_reset_b() {
  1553. window.SM_SLIDE_ELEMENT_B = null;
  1554. }
  1555.  
  1556. function sm_slide_reset_c() {
  1557. window.SM_SLIDE_ELEMENT_C = null;
  1558. }
  1559.  
  1560. function sm_slide_reset_d() {
  1561. window.SM_SLIDE_ELEMENT_D = null;
  1562. }
  1563.  
  1564. function sm_slide_reset_e() {
  1565. window.SM_SLIDE_ELEMENT_E = null;
  1566. }
  1567.  
  1568. function sm_slide_reset_f() {
  1569. window.SM_SLIDE_ELEMENT_F = null;
  1570. }
  1571.  
  1572. function sm_slide_reset_g() {
  1573. window.SM_SLIDE_ELEMENT_G = null;
  1574. }
  1575.  
  1576. function sm_select_count(sm_object) {
  1577. sm_object.focus();
  1578. sm_object.select();
  1579. }
  1580.  
  1581. function sm_input_alone() {
  1582. if (document.getElementById("sm_input").value == "") {
  1583. document.getElementById("sm_input").value = window.sm_interlude_original;
  1584. document.getElementById("sm_input").setAttribute("class", "sm_input_alone");
  1585. if (window.SM_INPUT_OUT == true) {
  1586. sm_input_in();
  1587. }
  1588. }
  1589. }
  1590.  
  1591. function sm_input_selected() {
  1592. if (document.getElementById("sm_input").value == "" && window.SM_INPUT_OUT == true) {
  1593. sm_input_in();
  1594. return true;
  1595. }
  1596. var sm_current_input = document.getElementById("sm_input").value;
  1597. var sm_interlude_search = sm_current_input.search(/SMMRY summarizes text to save you time.\n\nPaste a/);
  1598. if (sm_interlude_search != -1) {
  1599. document.getElementById("sm_input").value = "";
  1600. document.getElementById("sm_input").setAttribute("class", "sm_input_selected");
  1601. }
  1602. if (window.SM_INPUT_OUT == false && document.getElementById("sm_input").value != "") {
  1603. sm_input_out();
  1604. }
  1605. }
  1606.  
  1607. function sm_force_url_alone() {
  1608. if (document.getElementById("sm_force_url").value == "") {
  1609. document.getElementById("sm_force_url").value = window.sm_interlude_force_url;
  1610. document.getElementById("sm_force_url").setAttribute("class", "sm_force_url_alone");
  1611. if (window.SM_FORCE_URL_OUT == true) {
  1612. sm_force_url_in();
  1613. }
  1614. }
  1615. }
  1616.  
  1617. function sm_force_url_selected() {
  1618. if (document.getElementById("sm_force_url").value == "" && window.SM_FORCE_URL_OUT == true) {
  1619. sm_force_url_in();
  1620. return true;
  1621. }
  1622. var sm_current_input = document.getElementById("sm_force_url").value;
  1623. var sm_interlude_search = sm_current_input.search(/Or paste a URL here./);
  1624. if (sm_interlude_search != -1) {
  1625. document.getElementById("sm_force_url").value = "";
  1626. document.getElementById("sm_force_url").setAttribute("class", "sm_force_url_selected");
  1627. }
  1628. if (window.SM_FORCE_URL_OUT == false && document.getElementById("sm_force_url").value != "") {
  1629. sm_force_url_out();
  1630. }
  1631. }
  1632.  
  1633. function sm_resummarize_count(sm_retry) {
  1634. if (sm_retry == 1 && window.SM_LOAD_HTTP == false) {
  1635. if ((sm_microtime(true) - window.SM_RESUMMARIZE_COUNT_TIME) > 0.55 && document.getElementById("sm_count_secondary").value != "") {
  1636. sm_resummarize_process(0);
  1637. }
  1638. } else {
  1639. sm_element_remove("sm_errorbar_secondary", 2);
  1640. var sm_count_secondary = document.getElementById('sm_count_secondary').value;
  1641. if (sm_count_secondary.length > 0 && sm_count_secondary > 40) {
  1642. document.getElementById('sm_count_error_secondary').innerHTML = window.SM_MAX_SENTENCE;
  1643. sm_element_add("sm_count_error_secondary", 2);
  1644. return false;
  1645. } else {
  1646. sm_element_remove("sm_count_error_secondary", 2);
  1647. }
  1648. if (sm_count_secondary.length > 0 && sm_count_secondary < 1) {
  1649. document.getElementById('sm_count_error_secondary').innerHTML = window.SM_MIN_SENTENCE;
  1650. sm_element_add("sm_count_error_secondary", 2);
  1651. return false;
  1652. } else {
  1653. sm_element_remove("sm_count_error_secondary", 2);
  1654. }
  1655. window.SM_RESUMMARIZE_COUNT_TIME = sm_microtime(true);
  1656. setTimeout("sm_resummarize_count(1)", 600);
  1657. }
  1658. }
  1659.  
  1660. function sm_resummarize_reduction(sm_retry) {
  1661. if (sm_retry == 1 && window.SM_LOAD_HTTP == false) {
  1662. if ((sm_microtime(true) - window.SM_RESUMMARIZE_REDUCTION_TIME) > 0.55 && document.getElementById("sm_reduction_main").value != "") {
  1663. window.SM_REDUCTION_REQUEST = true;
  1664. window.SM_CHARACTER_REQUEST = false;
  1665. sm_resummarize_process(0);
  1666. }
  1667. } else {
  1668. window.SM_RESUMMARIZE_REDUCTION_TIME = sm_microtime(true);
  1669. setTimeout("sm_resummarize_reduction(1)", 600);
  1670. }
  1671. }
  1672.  
  1673. function sm_resummarize_character(sm_retry) {
  1674. if (sm_retry == 1 && window.SM_LOAD_HTTP == false) {
  1675. if ((sm_microtime(true) - window.SM_RESUMMARIZE_CHARACTER_TIME) > 0.55 && document.getElementById("sm_character_main").value != "") {
  1676. window.SM_CHARACTER_REQUEST = true;
  1677. window.SM_REDUCTION_REQUEST = false;
  1678. sm_resummarize_process(0);
  1679. }
  1680. } else {
  1681. window.SM_RESUMMARIZE_CHARACTER_TIME = sm_microtime(true);
  1682. setTimeout("sm_resummarize_character(1)", 600);
  1683. }
  1684. }
  1685.  
  1686. function sm_resummarize_process(sm_early_exit) {
  1687. if (sm_early_exit == 0 && (sm_microtime(true) - window.SM_RESUMMARIZE_PROCESS_TIME) < 1.2) {
  1688. setTimeout("sm_resummarize_process(" + sm_early_exit + ")", 100);
  1689. return false;
  1690. }
  1691. var sm_hash = window.location.hash;
  1692. var sm_length = "&SM_LENGTH=" + document.getElementById("sm_count_secondary").value;
  1693. var sm_keyword = "";
  1694. var sm_keyword_initial = true;
  1695. for (sm_key in window.SM_KEYWORD_ARRAY) {
  1696. if (sm_keyword_initial == true) {
  1697. sm_keyword_initial = false;
  1698. var sm_keyword = "&SM_KEYWORD=" + sm_key;
  1699. } else {
  1700. sm_keyword += "+" + sm_key;
  1701. }
  1702. }
  1703. if (document.getElementById("sm_check_question_avoid_visual").checked == true) {
  1704. var sm_question_avoid = "&SM_QUESTION_AVOID";
  1705. } else {
  1706. var sm_question_avoid = "";
  1707. }
  1708. if (document.getElementById("sm_check_exclamation_avoid_visual").checked == true) {
  1709. var sm_exclamation_avoid = "&SM_EXCLAMATION_AVOID";
  1710. } else {
  1711. var sm_exclamation_avoid = "";
  1712. }
  1713. if (document.getElementById("sm_check_quote_avoid_visual").checked == true) {
  1714. var sm_quote_avoid = "&SM_QUOTE_AVOID";
  1715. } else {
  1716. var sm_quote_avoid = "";
  1717. }
  1718. if (document.getElementById("sm_check_heat_map_visual").checked == true) {
  1719. var sm_heat_map = "&SM_HEAT_MAP";
  1720. } else {
  1721. var sm_heat_map = "";
  1722. sm_heat_map_remove();
  1723. }
  1724. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  1725. var sm_quick_transitions = "&SM_QUICK_TRANSITIONS";
  1726. } else {
  1727. var sm_quick_transitions = "";
  1728. }
  1729. if (window.SM_SPECIFY_TOPIC_STATE == 1) {
  1730. var sm_specify_topic = "&SM_SPECIFY_TOPIC";
  1731. } else {
  1732. var sm_specify_topic = "";
  1733. }
  1734. if (document.getElementById("sm_flash_strict_check").checked == true) {
  1735. var sm_strict_scan = "&SM_STRICT_SCAN";
  1736. } else {
  1737. var sm_strict_scan = "";
  1738. }
  1739. var sm_reduction_main = document.getElementById("sm_reduction_main").value;
  1740. var sm_character_main = document.getElementById("sm_character_main").value;
  1741. if (sm_hash.search(/&SM_DEBUG/) != -1) {
  1742. var sm_debug = "&SM_DEBUG";
  1743. } else {
  1744. var sm_debug = "";
  1745. }
  1746. if (document.getElementById('sm_primary_interface').style.display != "none") {
  1747. if (document.getElementById('sm_check_quote_avoid_visual').checked == true) {
  1748. document.getElementById('sm_check_question_avoid').value = "on";
  1749. } else {
  1750. document.getElementById('sm_check_question_avoid').value = "off";
  1751. }
  1752. if (document.getElementById('sm_check_exclamation_avoid_visual').checked == true) {
  1753. document.getElementById('sm_check_exclamation_avoid').value = "on";
  1754. } else {
  1755. document.getElementById('sm_check_exclamation_avoid').value = "off";
  1756. }
  1757. if (document.getElementById('sm_check_quote_avoid_visual').checked == true) {
  1758. document.getElementById('sm_check_quote_avoid').value = "on";
  1759. } else {
  1760. document.getElementById('sm_check_quote_avoid').value = "off";
  1761. }
  1762. if (document.getElementById('sm_check_heat_map_visual').checked == true) {
  1763. document.getElementById('sm_check_heat_map').value = "on";
  1764. } else {
  1765. document.getElementById('sm_check_heat_map').value = "off";
  1766. }
  1767. if (document.getElementById('sm_check_save_settings_visual').checked == true) {
  1768. window.SM_SETTINGS_SAVE_STATE = true;
  1769. var sm_settings_save_composite = sm_question_avoid + sm_exclamation_avoid + sm_quote_avoid + sm_heat_map + sm_quick_transitions + sm_specify_topic + sm_strict_scan + "&SM_DUD";
  1770. if (sm_settings_save_composite != window.SM_USER_SETTINGS_SAVE) {
  1771. window.SM_USER_SETTINGS_SAVE = sm_settings_save_composite;
  1772. sm_settings_save_composite = sm_settings_save_composite.replace(/&/g, "SM_CHAR_AMP");
  1773. sm_http_connect("https://smmry.com/sm_settings_save.php?sm_settings_save_composite=" + sm_settings_save_composite);
  1774. }
  1775. } else if (window.SM_SETTINGS_SAVE_STATE == true) {
  1776. window.SM_SETTINGS_SAVE_STATE = false;
  1777. sm_http_connect("https://smmry.com/sm_settings_save.php?sm_settings_save_composite=sm_null");
  1778. window.SM_USER_SETTINGS_SAVE = "";
  1779. }
  1780. return true;
  1781. }
  1782.  
  1783. if (document.getElementById('sm_share_container').style.display != "none") {
  1784. sm_share_summary_remove();
  1785. }
  1786. if (document.getElementById('sm_rate_container').style.display != "none") {
  1787. sm_recovery_remove('sm_rate_summary_remove()');
  1788. sm_rate_summary_remove();
  1789. }
  1790. window.SM_RESUMMARIZE_PROCESS_TIME = sm_microtime(true);
  1791.  
  1792. if (document.getElementById('sm_check_save_settings_visual').checked == true) {
  1793. window.SM_SETTINGS_SAVE_STATE = true;
  1794. var sm_settings_save_composite = sm_question_avoid + sm_exclamation_avoid + sm_quote_avoid + sm_heat_map + sm_quick_transitions + sm_specify_topic + sm_strict_scan + "&SM_DUD";
  1795. if (sm_settings_save_composite != window.SM_USER_SETTINGS_SAVE) {
  1796. window.SM_USER_SETTINGS_SAVE = sm_settings_save_composite;
  1797. sm_settings_save_composite = sm_settings_save_composite.replace(/&/g, "SM_CHAR_AMP");
  1798. sm_http_connect("https://smmry.com/sm_settings_save.php?sm_settings_save_composite=" + sm_settings_save_composite);
  1799. }
  1800. } else if (window.SM_SETTINGS_SAVE_STATE == true) {
  1801. window.SM_SETTINGS_SAVE_STATE = false;
  1802. sm_http_connect("https://smmry.com/sm_settings_save.php?sm_settings_save_composite=sm_null");
  1803. window.SM_USER_SETTINGS_SAVE = "";
  1804. }
  1805. if (sm_early_exit == 1) {
  1806. return false;
  1807. }
  1808. var sm_parameter_extra_composite = sm_length + sm_keyword + sm_question_avoid + sm_exclamation_avoid + sm_quote_avoid + sm_heat_map + sm_strict_scan + sm_debug;
  1809. var sm_parameter_extra_composite_compare = sm_length + sm_keyword + sm_question_avoid + sm_exclamation_avoid + sm_quote_avoid + sm_heat_map + sm_strict_scan + sm_reduction_main + sm_character_main + sm_debug;
  1810. if (sm_parameter_extra_composite_compare == window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE) {
  1811. return false;
  1812. }
  1813. var sm_count = document.getElementById("sm_count_secondary").value;
  1814. if (sm_count > 40 || sm_count < 1) {
  1815. return false;
  1816. }
  1817. window.SM_PARAMETER_EXTRA_COMPOSITE = sm_parameter_extra_composite;
  1818. window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE = sm_parameter_extra_composite_compare;
  1819. window.location.hash = sm_parameter_extra_composite;
  1820. if (sm_early_exit == 2 || document.getElementById('sm_primary_interface').style.display != "none") {
  1821. return false;
  1822. }
  1823. sm_http_protocol(0);
  1824. }
  1825.  
  1826. function sm_expand() {
  1827. document.getElementById("sm_container_output").innerHTML = document.getElementById("sm_container_output").innerHTML.replace(/<sm_break>/gi, "<br>");
  1828. document.getElementById("sm_container_expanded").style.fontWeight = "bold";
  1829. document.getElementById("sm_container_compact").style.fontWeight = "normal";
  1830. sm_http_connect("https://smmry.com/sm_view_mode.php?sm_switch=expanded");
  1831. }
  1832.  
  1833. function sm_compact() {
  1834. document.getElementById("sm_container_output").innerHTML = document.getElementById("sm_container_output").innerHTML.replace(/<br>/gi, "<sm_break>");
  1835. document.getElementById("sm_container_compact").style.fontWeight = "bold";
  1836. document.getElementById("sm_container_expanded").style.fontWeight = "normal";
  1837. sm_http_connect("https://smmry.com/sm_view_mode.php?sm_switch=compact");
  1838. }
  1839.  
  1840. function sm_scroll_enable(sm_preserve) {
  1841. if (sm_preserve == 0) {
  1842. window.SM_VIEW_FIXED = true;
  1843. document.getElementById("sm_lower_main_container").style.top = (parseFloat(document.getElementById("sm_lower_main_container").style.top) + 50) + "px";
  1844. document.getElementById("sm_footer_container").style.top = (parseFloat(document.getElementById("sm_footer_container").style.top) + 40) + "px";
  1845. sm_http_connect("https://smmry.com/sm_view_mode.php?sm_switch=fixed");
  1846. }
  1847.  
  1848. document.getElementById("sm_secondary_inner_interface").style.overflow = "auto";
  1849. document.getElementById("sm_secondary_inner_interface").style.height = "398px";
  1850. document.getElementById("sm_container_secondary").style.height = "420px";
  1851. document.getElementById("sm_secondary_interface").style.height = "420px";
  1852. //document.getElementById("sm_scrollbar_enabled").style.fontWeight = "bold";
  1853. //document.getElementById("sm_scrollbar_disabled").style.fontWeight = "normal";
  1854. }
  1855.  
  1856. function sm_scroll_disable(sm_preserve) {
  1857. if (sm_preserve == 0) {
  1858. window.SM_VIEW_FIXED = false;
  1859. document.getElementById("sm_lower_main_container").style.top = (parseFloat(document.getElementById("sm_lower_main_container").style.top) - 50) + "px";
  1860. document.getElementById("sm_footer_container").style.top = (parseFloat(document.getElementById("sm_footer_container").style.top) - 40) + "px";
  1861. sm_http_connect("https://smmry.com/sm_view_mode.php?sm_switch=dynamic");
  1862. }
  1863.  
  1864. document.getElementById("sm_secondary_inner_interface").style.overflow = "none";
  1865. document.getElementById("sm_secondary_inner_interface").style.height = "auto";
  1866. document.getElementById("sm_container_secondary").style.height = "auto";
  1867. document.getElementById("sm_secondary_interface").style.height = "auto";
  1868. //document.getElementById("sm_scrollbar_enabled").style.fontWeight = "normal";
  1869. //document.getElementById("sm_scrollbar_disabled").style.fontWeight = "bold";
  1870. }
  1871.  
  1872. function sm_registerbar_load(sm_access_level) {
  1873. if (sm_access_level == 1) {
  1874. scroll(0, 0);
  1875. var sm_registerbar_code = "You need a <span style=\"position:relative;font-weight:bold;background-color:#9900cc;color:#fff;padding:4px;-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; text-transform: uppercase;\">Standard</span> account to do that.<div style=\"position:relative;top:7px;\"><input id=\"sm_register_clear\" type=\"button\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif; font-size:18px; font-weight:bold; background-color:#f2ec43; border-color:#bfba35; width:110px; height:30px;\" onclick=\"sm_registerbar_remove();\" onmouseover=\"this.style.cursor = 'pointer'\" value=\"CANCEL\" />&nbsp;<input type=\"button\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif;font-size:18px;font-weight:bold;background-color:#ff8a3d;border-color:#d66e2a;width:160px;height:30px;\" onclick=\"sm_register_launch();\" onmouseover=\"this.style.cursor = 'pointer'\" value=\"REGISTER\" />&nbsp;<input type=\"button\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif;font-size:18px;font-weight:bold;background-color:#60e25d;border-color:#49aa47;width:100px;height:30px;\" onclick=\"sm_login_launch();\" onmouseover=\"this.style.cursor = 'pointer'\" value=\"LOGIN\" /></div>";
  1876. } else if (sm_access_level == 2) {
  1877. scroll(0, 0);
  1878. var sm_registerbar_code = "You need a <span style=\"position:relative;font-weight:bold;background-color:#39F;padding:4px;-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; text-transform: uppercase;\">Plus</span> account to do that.<div style=\"position:relative;top:7px;\"><input id=\"sm_register_clear\" type=\"button\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif; font-size:18px; font-weight:bold; background-color:#f2ec43; border-color:#bfba35; width:110px; height:30px;\" onclick=\"sm_registerbar_remove();\" onmouseover=\"this.style.cursor = 'pointer'\" value=\"CANCEL\" />&nbsp;<input type=\"button\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif;font-size:18px;font-weight:bold;background-color:#ff8a3d;border-color:#d66e2a;width:160px;height:30px;\" onclick=\"sm_register_launch();\" onmouseover=\"this.style.cursor = 'pointer'\" value=\"MORE INFO\" />";
  1879. if (window.SM_USER_PLUS == false) {
  1880. sm_registerbar_code += "&nbsp;<input type=\"button\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif;font-size:18px;font-weight:bold;background-color:#60e25d;border-color:#49aa47;width:100px;height:30px;\" onclick=\"sm_login_launch();\" onmouseover=\"this.style.cursor = 'pointer'\" value=\"LOGIN\" />";
  1881. }
  1882. sm_registerbar_code += "</div>";
  1883. }
  1884. if (document.getElementById('sm_primary_interface').style.display == "block") {
  1885. document.getElementById('sm_registerbar_primary').innerHTML = sm_registerbar_code;
  1886. sm_element_add('sm_registerbar_primary', 10);
  1887. } else {
  1888. document.getElementById('sm_registerbar_secondary').innerHTML = sm_registerbar_code;
  1889. sm_element_add('sm_registerbar_secondary', 10);
  1890. }
  1891. }
  1892.  
  1893. function sm_registerbar_remove() {
  1894. document.getElementById('sm_registerbar_primary').innerHTML = "";
  1895. document.getElementById('sm_registerbar_secondary').innerHTML = "";
  1896. sm_element_remove('sm_registerbar_primary', 5);
  1897. sm_element_remove('sm_registerbar_secondary', 5);
  1898. }
  1899.  
  1900. function sm_http_protocol(sm_initial) {
  1901. if (window.SM_LOAD_HTTP == true) {
  1902. return false;
  1903. }
  1904. if (window.SM_LOAD_HTTP_SUB == true) {
  1905. setTimeout("sm_http_protocol(" + sm_initial + ")", 100);
  1906. return false;
  1907. }
  1908. sm_http_object = sm_http_object_retrieve();
  1909. if (sm_http_object != null) {
  1910. window.SM_LOAD_HTTP = true;
  1911. sm_element_snap_add("sm_loading_notice");
  1912. sm_element_remove("sm_errorbar_primary", 2);
  1913. sm_element_remove("sm_errorbar_secondary", 2);
  1914. sm_element_remove("sm_primary_interface", 2);
  1915. sm_load_add(sm_initial);
  1916. var sm_hash = window.location.hash;
  1917. var sm_count = 7;
  1918. if (sm_hash.search(/&SM_LENGTH=/) != -1) {
  1919. var sm_length_array = sm_hash.split("&SM_LENGTH=");
  1920. if (sm_hash.search(/&/) == -1 && sm_length_array[1] == parseFloat(sm_length_array[1])) {
  1921. var sm_count = sm_length_array[1];
  1922. } else {
  1923. var sm_length_array = sm_length_array[1].split("&");
  1924. if (sm_length_array[0] == parseFloat(sm_length_array[0])) {
  1925. var sm_count = sm_length_array[0];
  1926. }
  1927. }
  1928. document.getElementById('sm_count_secondary').value = sm_count;
  1929. document.getElementById('sm_count_primary').value = sm_count;
  1930. }
  1931. if (sm_hash.search(/&SM_KEYWORD=/) != -1) {
  1932. window.SM_KEYWORD_ARRAY = sm_flash_refresh();
  1933. var sm_keyword = "&SM_KEYWORD=" + window.SM_KEYWORD_ARRAY[0];
  1934. var sm_keyword_initial = true;
  1935. for (sm_key in window.SM_KEYWORD_ARRAY) {
  1936. if (sm_keyword_initial == true) {
  1937. sm_keyword_initial = false;
  1938. var sm_keyword = "&SM_KEYWORD=" + sm_key;
  1939. } else {
  1940. sm_keyword += "+" + sm_key;
  1941. }
  1942. }
  1943. } else {
  1944. var sm_keyword = "";
  1945. }
  1946. if (sm_hash.search(/&SM_QUESTION_AVOID/) != -1 || (sm_initial == 1 && typeof window.SM_USER_SETTINGS_SAVE != "undefined") && window.SM_USER_SETTINGS_SAVE.search(/&SM_QUESTION_AVOID/) != -1) {
  1947. var sm_question_avoid = "&SM_QUESTION_AVOID";
  1948. if (typeof window.SM_USER_SETTINGS_SAVE != "undefined" && window.SM_USER_SETTINGS_SAVE.search(/&SM_DUD/) != -1 && window.SM_USER_SETTINGS_SAVE.search(/&SM_QUESTION_AVOID/) == -1) {
  1949. document.getElementById('sm_check_question_avoid_visual').indeterminate = true;
  1950. } else {
  1951. document.getElementById('sm_check_question_avoid_visual').checked = true;
  1952. }
  1953. } else {
  1954. var sm_question_avoid = "";
  1955. document.getElementById('sm_check_question_avoid_visual').checked = false;
  1956. }
  1957. if (sm_hash.search(/&SM_EXCLAMATION_AVOID/) != -1 || (sm_initial == 1 && typeof window.SM_USER_SETTINGS_SAVE != "undefined") && window.SM_USER_SETTINGS_SAVE.search(/&SM_EXCLAMATION_AVOID/) != -1) {
  1958. var sm_exclamation_avoid = "&SM_EXCLAMATION_AVOID";
  1959. if (typeof window.SM_USER_SETTINGS_SAVE != "undefined" && window.SM_USER_SETTINGS_SAVE.search(/&SM_DUD/) != -1 && window.SM_USER_SETTINGS_SAVE.search(/&SM_EXCLAMATION_AVOID/) == -1) {
  1960. document.getElementById('sm_check_exclamation_avoid_visual').indeterminate = true;
  1961. } else {
  1962. document.getElementById('sm_check_exclamation_avoid_visual').checked = true;
  1963. }
  1964. } else {
  1965. var sm_exclamation_avoid = "";
  1966. document.getElementById('sm_check_exclamation_avoid_visual').checked = false;
  1967. }
  1968. if (sm_hash.search(/&SM_QUOTE_AVOID/) != -1 || (sm_initial == 1 && typeof window.SM_USER_SETTINGS_SAVE != "undefined") && window.SM_USER_SETTINGS_SAVE.search(/&SM_QUOTE_AVOID/) != -1) {
  1969. var sm_quote_avoid = "&SM_QUOTE_AVOID";
  1970. if (typeof window.SM_USER_SETTINGS_SAVE != "undefined" && window.SM_USER_SETTINGS_SAVE.search(/&SM_DUD/) != -1 && window.SM_USER_SETTINGS_SAVE.search(/&SM_QUOTE_AVOID/) == -1) {
  1971. document.getElementById('sm_check_quote_avoid_visual').indeterminate = true;
  1972. } else {
  1973. document.getElementById('sm_check_quote_avoid_visual').checked = true;
  1974. }
  1975. } else {
  1976. var sm_quote_avoid = "";
  1977. document.getElementById('sm_check_quote_avoid_visual').checked = false;
  1978. }
  1979. if (sm_hash.search(/&SM_HEAT_MAP/) != -1 || (sm_initial == 1 && typeof window.SM_USER_SETTINGS_SAVE != "undefined") && window.SM_USER_SETTINGS_SAVE.search(/&SM_HEAT_MAP/) != -1) {
  1980. var sm_heat_map = "&SM_HEAT_MAP";
  1981. if (typeof window.SM_USER_SETTINGS_SAVE != "undefined" && window.SM_USER_SETTINGS_SAVE.search(/&SM_DUD/) != -1 && window.SM_USER_SETTINGS_SAVE.search(/&SM_HEAT_MAP/) == -1) {
  1982. document.getElementById('sm_check_heat_map_visual').indeterminate = true;
  1983. } else {
  1984. document.getElementById('sm_check_heat_map_visual').checked = true;
  1985. }
  1986. } else {
  1987. var sm_heat_map = "";
  1988. document.getElementById('sm_check_heat_map_visual').checked = false;
  1989. }
  1990. if ((sm_initial == 1 && typeof window.SM_USER_SETTINGS_SAVE != "undefined") && window.SM_USER_SETTINGS_SAVE.search(/&SM_QUICK_TRANSITIONS/) != -1) {
  1991. document.getElementById('sm_check_quick_transitions_visual').checked = true;
  1992. }
  1993. if ((sm_initial == 1 && typeof window.SM_USER_SETTINGS_SAVE != "undefined") && window.SM_USER_SETTINGS_SAVE.search(/&SM_SPECIFY_TOPIC/) != -1) {
  1994. document.getElementById('sm_check_specify_topic_visual').checked = true;
  1995. }
  1996. if (sm_hash.search(/&SM_STRICT_SCAN/) != -1 || (sm_initial == 1 && typeof window.SM_USER_SETTINGS_SAVE != "undefined") && window.SM_USER_SETTINGS_SAVE.search(/&SM_STRICT_SCAN/) != -1) {
  1997. var sm_strict_scan = "&SM_STRICT_SCAN";
  1998. if (typeof window.SM_USER_SETTINGS_SAVE != "undefined" && window.SM_USER_SETTINGS_SAVE.search(/&SM_DUD/) != -1 && window.SM_USER_SETTINGS_SAVE.search(/&SM_HEAT_MAP/) == -1) {
  1999. document.getElementById('sm_flash_strict_check').indeterminate = true;
  2000. } else {
  2001. document.getElementById('sm_flash_strict_check').checked = true;
  2002. }
  2003. } else {
  2004. var sm_strict_scan = "";
  2005. document.getElementById('sm_flash_strict_check').checked = false;
  2006. }
  2007. if (window.SM_REDUCTION_REQUEST == true) {
  2008. window.SM_REDUCTION_REQUEST = false;
  2009. var sm_reduction_count = document.getElementById('sm_reduction_main').value;
  2010. } else {
  2011. var sm_reduction_count = -1;
  2012. }
  2013. if (window.SM_CHARACTER_REQUEST == true && sm_reduction_count == -1) {
  2014. window.SM_CHARACTER_REQUEST = false;
  2015. var sm_character_count = document.getElementById('sm_character_main').value;
  2016. } else {
  2017. var sm_character_count = -1;
  2018. }
  2019. if (sm_hash.search(/&SM_DEBUG/) != -1) {
  2020. var sm_debug = "&SM_DEBUG";
  2021. } else {
  2022. var sm_debug = "";
  2023. }
  2024. var sm_parameter_extra_composite = sm_keyword + sm_question_avoid + sm_exclamation_avoid + sm_quote_avoid + sm_heat_map + sm_strict_scan + sm_debug;
  2025. if (sm_initial == 1) {
  2026. window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE = "&SM_LENGTH=" + sm_count + sm_keyword + sm_question_avoid + sm_exclamation_avoid + sm_quote_avoid + sm_heat_map + sm_strict_scan + "[SM_REDUCTION_SPOT][SM_CHARACTER_SPOT]" + sm_debug;
  2027. window.location.hash = "&SM_LENGTH=" + sm_count + sm_parameter_extra_composite;
  2028. }
  2029. sm_http_object.open("GET", "https://smmry.com/sm_portal.php?&SM_TOKEN=7407934355&SM_POST_SAVE=0&SM_REDUCTION=" + sm_reduction_count + "&SM_CHARACTER=" + sm_character_count + "&SM_LENGTH=" + sm_count + sm_parameter_extra_composite + "&SM_URL=http://money.cnn.com/2018/04/01/news/sports-betting-supreme-court-new-jersey/index.html");
  2030. sm_http_object.send(null);
  2031. sm_http_object.onreadystatechange = function() {
  2032. if (sm_http_object.readyState == 4) {
  2033. var sm_response = sm_http_object.responseText;
  2034. sm_response = sm_response.replace(/\[SM_a\]/g, "<span id=\"sm_flash_");
  2035. sm_response = sm_response.replace(/\[SM_b\]/g, "\" onclick=\"sm_flash_process('");
  2036. sm_response = sm_response.replace(/\[SM_c\]/g, "', this,");
  2037. sm_response = sm_response.replace(/\[SM_d\]/g, ")\" onmouseover=\"sm_flash_add('");
  2038. sm_response = sm_response.replace(/\[SM_e\]/g, "', this, ");
  2039. sm_response = sm_response.replace(/\[SM_f\]/g, ");\" onmouseout=\"sm_flash_remove('");
  2040. sm_response = sm_response.replace(/\[SM_g\]/g, ");\">");
  2041. sm_response = sm_response.replace(/\[SM_h\]/g, "</span>");
  2042. sm_response = sm_response.replace(/\[SM_i\]/g, "<span style=\"background-color:");
  2043. sm_response = sm_response.replace(/\[SM_j\]/g, "rgb(255, ");
  2044. sm_response = sm_response.replace(/\[SM_k\]/g, ", 0)\"> ");
  2045. sm_response = sm_response.replace(/\[SM_l\]/g, "<br><br>");
  2046. sm_response = sm_response.replace(/\[SM_m\]/g, "<sm_break><sm_break>");
  2047. sm_response = sm_response.replace(/\[SM_n\]/g, "rgb(75, ");
  2048.  
  2049. if (sm_response.search(/SM_DIVIDE/) == -1) {
  2050. sm_errorbar_message("INTERNAL SERVER ERROR OCCURED", "primary");
  2051. sm_element_snap_remove("sm_secondary_interface");
  2052. sm_element_snap_remove("sm_secondary_upper_bar");
  2053. sm_element_snap_remove("sm_flashbar_container");
  2054. sm_element_snap_remove("sm_lower_container");
  2055. sm_element_snap_add("sm_primary_interface");
  2056. if (window.SM_VIEW_FIXED == false) {
  2057. document.getElementById('sm_footer_container').style.top = (parseFloat(document.getElementById('sm_footer_container').style.top) + 20) + "px";
  2058. }
  2059. sm_upload_initiate();
  2060. } else {
  2061. var sm_response_array = sm_response.split("SM_DIVIDE");
  2062. if (sm_response_array[1].search(/SENTENCE AMOUNT REDUCED/) != -1) {
  2063. var sm_count_array = sm_response.split("REDUCED TO ");
  2064. var sm_count_array = sm_count_array[1].split("SM_DIVIDE");
  2065. document.getElementById('sm_count_secondary').value = sm_count_array[0];
  2066. window.location.hash = "&SM_LENGTH=" + sm_count_array[0] + sm_parameter_extra_composite;
  2067. }
  2068. if (sm_response_array[1].search(/MAXIMUM SENTENCE AMOUNT IS/) != -1) {
  2069. var sm_count_array = sm_response.split("MAXIMUM SENTENCE AMOUNT IS ");
  2070. var sm_count_array = sm_count_array[1].split("SM_DIVIDE");
  2071. document.getElementById('sm_count_secondary').value = sm_count_array[0];
  2072. window.location.hash = "&SM_LENGTH=" + sm_count_array[0] + sm_parameter_extra_composite;
  2073. }
  2074. if (sm_response_array[1].search(/MINIMUM SENTENCE AMOUNT IS/) != -1) {
  2075. var sm_count_array = sm_response.split("MINIMUM SENTENCE AMOUNT IS ");
  2076. var sm_count_array = sm_count_array[1].split("SM_DIVIDE");
  2077. document.getElementById('sm_count_secondary').value = sm_count_array[0];
  2078. window.location.hash = "&SM_LENGTH=" + sm_count_array[0] + sm_parameter_extra_composite;
  2079. }
  2080. document.getElementById('sm_errorbar_primary').innerHTML = "";
  2081. document.getElementById('sm_errorbar_secondary').innerHTML = "";
  2082. if (sm_response_array[0] == 1) {
  2083. sm_element_snap_remove("sm_secondary_interface");
  2084. sm_element_snap_remove("sm_secondary_upper_bar");
  2085. sm_element_snap_remove("sm_flashbar_container");
  2086. sm_element_snap_remove("sm_lower_container");
  2087. sm_element_snap_add("sm_primary_interface");
  2088. if (window.SM_VIEW_FIXED == false) {
  2089. document.getElementById('sm_footer_container').style.top = (parseFloat(document.getElementById('sm_footer_container').style.top) + 20) + "px";
  2090. }
  2091. sm_errorbar_message(sm_response_array[1], "primary");
  2092. sm_upload_initiate();
  2093. } else {
  2094. sm_element_snap_remove("sm_load_shade");
  2095. if (sm_heat_map == "&SM_HEAT_MAP") {
  2096. sm_heat_map_add();
  2097. }
  2098. window.SM_BATON_TITLE = sm_response_array[2];
  2099. window.SM_BATON_OUTPUT = sm_response_array[3];
  2100. if (window.SM_BATON_OUTPUT.length == 0) {
  2101. window.SM_BATON_OUTPUT = "<div style=\"position:relative;top:5px;font-size:18px;font-weight:bold;background-color:#cccc00;border-style:solid;border-width:2px;border-color:#000;padding:5px;\">No sentences available, try broadening your settings.</div><div style=\"height:20px;\"></div>";
  2102. }
  2103. setTimeout("sm_load_remove_wait(1, " + sm_initial + ");", 10);
  2104. if (sm_response_array[1] != "") {
  2105. sm_errorbar_message(sm_response_array[1], "secondary");
  2106. }
  2107. if (sm_response_array[4] != "") {
  2108. var sm_flash_array = new Object();
  2109. var sm_flash_sub_array = new Object();
  2110. var sm_flash_sub_sub_array = new Object();
  2111. var sm_flash_transfer_array = sm_response_array[4].split("[SM_B]");
  2112. sm_flash_transfer_array.splice(0, 1);
  2113. for (sm_key in sm_flash_transfer_array) {
  2114. var sm_flash_transfer_sub_array = sm_flash_transfer_array[sm_key].split("[SM_C]");
  2115. sm_flash_sub_array[sm_flash_transfer_sub_array[1]] = sm_flash_transfer_sub_array[0];
  2116. sm_flash_sub_sub_array[sm_flash_transfer_sub_array[0]] = sm_flash_transfer_sub_array[1];
  2117. sm_flash_array[sm_flash_transfer_sub_array[0]] = new Array();
  2118. var sm_flash_transfer_sub_sub_array = sm_flash_transfer_sub_array[2].split("[SM_D]");
  2119. sm_flash_transfer_sub_sub_array.splice(0, 1);
  2120. for (sm_key_sub in sm_flash_transfer_sub_sub_array) {
  2121. sm_flash_array[sm_flash_transfer_sub_array[0]].push(sm_flash_transfer_sub_sub_array[sm_key_sub]);
  2122. }
  2123. }
  2124. window.SM_FLASH_GROUP_ARRAY = sm_flash_array;
  2125. window.SM_FLASH_SHORT_ARRAY = sm_flash_sub_array;
  2126. window.SM_FLASH_REVERSE_ARRAY = sm_flash_sub_sub_array;
  2127. }
  2128. if (sm_response_array[5] != "") {
  2129. var sm_flash_array = new Array();
  2130. var sm_flash_sub_array = new Object();
  2131. var sm_flash_transfer_array = sm_response_array[5].split("[SM_B]");
  2132. sm_flash_transfer_array.splice(0, 1);
  2133. var sm_flash_counter = sm_substr_count(sm_response_array[5], "[SM_B]");
  2134. for (sm_key in sm_flash_transfer_array) {
  2135. var sm_flash_transfer_sub_array = sm_flash_transfer_array[sm_key].split("[SM_C]");
  2136. sm_flash_sub_array[sm_flash_transfer_sub_array[0]] = sm_flash_transfer_sub_array[1];
  2137. sm_flash_array[sm_flash_counter] = sm_flash_transfer_sub_array[0];
  2138. sm_flash_counter--;
  2139. }
  2140. window.SM_FLASH_RANK_ARRAY = sm_flash_array;
  2141. window.SM_FLASH_COLOUR_ARRAY = sm_flash_sub_array;
  2142. }
  2143. if (sm_response_array[6] != "") {
  2144. document.getElementById('sm_reduction_main').value = sm_response_array[6];
  2145. if (sm_initial == 1) {
  2146. window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE = window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE.replace("[SM_REDUCTION_SPOT]", sm_response_array[6]);
  2147. }
  2148. if (window.SM_REDUCTION_FOCUS == true) {
  2149. sm_select_count(document.getElementById('sm_reduction_main'));
  2150. }
  2151. }
  2152. if (sm_response_array[7] != "") {
  2153. document.getElementById('sm_character_main').value = sm_response_array[7];
  2154. if (sm_initial == 1) {
  2155. window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE = window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE.replace("[SM_CHARACTER_SPOT]", sm_response_array[7]);
  2156. }
  2157. if (window.SM_CHARACTER_FOCUS == true) {
  2158. sm_select_count(document.getElementById('sm_character_main'));
  2159. }
  2160. }
  2161. if (window.SM_COUNT_FOCUS == true) {
  2162. sm_select_count(document.getElementById('sm_count_secondary'));
  2163. }
  2164. if (sm_response_array[8] != "") {
  2165. document.getElementById('sm_count_secondary').value = sm_response_array[8];
  2166. sm_resummarize_process(2);
  2167. }
  2168. if (sm_response_array[9] != "") {
  2169. window.SM_SIGNATURE = sm_response_array[9];
  2170. }
  2171. if (sm_response_array[10] != "") {
  2172. document.getElementById("sm_container_debug").innerHTML = sm_response_array[10];
  2173. document.getElementById("sm_container_debug").style.display = "block";
  2174. document.getElementById("sm_outer_debug").style.display = "block";
  2175. } else {
  2176. document.getElementById("sm_container_debug").innerHTML = "";
  2177. document.getElementById("sm_container_debug").style.display = "none";
  2178. document.getElementById("sm_outer_debug").style.display = "none";
  2179. }
  2180. }
  2181. }
  2182. window.SM_FLASH_PROCESS_BLOCK = false;
  2183. window.SM_LOAD_HTTP = false;
  2184. sm_element_snap_remove("sm_loading_notice");
  2185. }
  2186. }
  2187. }
  2188. }
  2189.  
  2190. function sm_heat_map_add() {
  2191. document.getElementById('sm_container_secondary').style.backgroundColor = "#939393";
  2192. document.getElementById('sm_secondary_text_style').style.backgroundColor = "#666666";
  2193. document.getElementById('sm_reduction_main').style.backgroundColor = "#666666";
  2194. document.getElementById('sm_reduction_main').style.borderTopColor = "#333333";
  2195. document.getElementById('sm_reduction_main').style.borderLeftColor = "#333333";
  2196. document.getElementById('sm_reduction_main').style.borderBottomColor = "#ead9ff";
  2197. document.getElementById('sm_reduction_main').style.borderRightColor = "#ead9ff";
  2198. document.getElementById('sm_character_main').style.backgroundColor = "#666666";
  2199. document.getElementById('sm_character_main').style.borderTopColor = "#333333";
  2200. document.getElementById('sm_character_main').style.borderLeftColor = "#333333";
  2201. document.getElementById('sm_character_main').style.borderBottomColor = "#ead9ff";
  2202. document.getElementById('sm_character_main').style.borderRightColor = "#ead9ff";
  2203. }
  2204.  
  2205. function sm_heat_map_remove() {
  2206. document.getElementById('sm_container_secondary').style.backgroundColor = "#ead9ff";
  2207. document.getElementById('sm_secondary_text_style').style.backgroundColor = "#cebee2";
  2208. document.getElementById('sm_reduction_main').style.backgroundColor = "#cebee2";
  2209. document.getElementById('sm_reduction_main').style.borderTopColor = "#c141c1";
  2210. document.getElementById('sm_reduction_main').style.borderLeftColor = "#c141c1";
  2211. document.getElementById('sm_reduction_main').style.borderBottomColor = "#b7a3d1";
  2212. document.getElementById('sm_reduction_main').style.borderRightColor = "#b7a3d1";
  2213. document.getElementById('sm_character_main').style.backgroundColor = "#cebee2";
  2214. document.getElementById('sm_character_main').style.borderTopColor = "#c141c1";
  2215. document.getElementById('sm_character_main').style.borderLeftColor = "#c141c1";
  2216. document.getElementById('sm_character_main').style.borderBottomColor = "#b7a3d1";
  2217. document.getElementById('sm_character_main').style.borderRightColor = "#b7a3d1";
  2218. }
  2219.  
  2220. function sm_flash_refresh() {
  2221. var sm_hash = window.location.hash;
  2222. var sm_keyword_local_array = new Array();
  2223. if (sm_hash.search(/&SM_KEYWORD=/) != -1) {
  2224. var sm_keyword_array = sm_hash.split("&SM_KEYWORD=");
  2225. if (sm_keyword_array[1].search(/&/) == -1) {
  2226. var sm_keyboard_compile = sm_keyword_array[1];
  2227. } else {
  2228. var sm_keyword_sub_array = sm_keyword_array[1].split("&");
  2229. var sm_keyboard_compile = sm_keyword_sub_array[0];
  2230. }
  2231. if (sm_keyboard_compile.search(/\+/) == -1 && parseFloat(sm_keyboard_compile) == sm_keyboard_compile) {
  2232. sm_keyword_local_array[sm_keyboard_compile] = true;
  2233. } else {
  2234. sm_keyword_array = sm_keyboard_compile.split("+");
  2235. var sm_keyword_counter = 0;
  2236. for (sm_key in sm_keyword_array) {
  2237. if (sm_keyword_counter == 5) {
  2238. break;
  2239. }
  2240. if (parseFloat(sm_keyword_array[sm_key]) == sm_keyword_array[sm_key]) {
  2241. sm_keyword_local_array[sm_keyword_array[sm_key]] = true;
  2242. }
  2243. sm_keyword_counter++;
  2244. }
  2245. }
  2246. }
  2247. return sm_keyword_local_array;
  2248. }
  2249.  
  2250. function sm_flash_purge() {
  2251. if (window.SM_FLASH_PROCESS_BLOCK == true) {
  2252. return false;
  2253. }
  2254. if (window.SM_FLASHBAR_PURGE_BLOCK == false) {
  2255. window.SM_FLASHBAR_BUILD = "";
  2256. window.SM_FLASH_CURRENT_ARRAY = new Array();
  2257. }
  2258. for (sm_key in window.SM_KEYWORD_ARRAY) {
  2259. for (sm_key_sub in window.SM_FLASH_GROUP_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]]) {
  2260. if (document.getElementById("sm_flash_" + window.SM_FLASH_GROUP_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]][sm_key_sub])) {
  2261. document.getElementById("sm_flash_" + window.SM_FLASH_GROUP_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]][sm_key_sub]).style.backgroundColor = window.SM_FLASH_COLOUR_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]];
  2262. }
  2263. if (window.SM_FLASHBAR_PURGE_BLOCK == false && typeof window.SM_FLASH_CURRENT_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]] == "undefined") {
  2264. window.SM_FLASH_CURRENT_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]] = true;
  2265. window.SM_FLASHBAR_BUILD += window.SM_FLASH_REVERSE_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]] + " ";
  2266. }
  2267. }
  2268. }
  2269. if (window.SM_FLASHBAR_PURGE_BLOCK == false && window.SM_FLASHBAR_BUILD != "") {
  2270. sm_flashbar_activate();
  2271. sm_flashbar_character("");
  2272. }
  2273. if (window.SM_FLASHBAR_PURGE_BLOCK == true) {
  2274. window.SM_FLASHBAR_PURGE_BLOCK = false;
  2275. }
  2276. }
  2277.  
  2278. function sm_flash_clear() {
  2279. window.SM_KEYWORD_ARRAY = new Array();
  2280. window.SM_FLASH_CURRENT_ARRAY = new Array();
  2281. sm_resummarize_process(0);
  2282. }
  2283.  
  2284. function sm_flash_process(sm_flash_group_unique, sm_object, sm_active) {
  2285. window.SM_FLASHBAR_HOVER_SUB = false;
  2286. if (sm_active != 0 && window.SM_SPECIFY_TOPIC_STATE == 0) {
  2287. sm_specify_topic_indeterminate();
  2288. }
  2289. if (sm_active == 1 || sm_active == 2) {
  2290. window.SM_FLASH_PROCESS_BLOCK = true;
  2291. sm_keyword_local_array = sm_flash_refresh();
  2292. var sm_keyword_counter = 0;
  2293. for (sm_key in sm_keyword_local_array) {
  2294. if (sm_keyword_local_array[sm_key] == true) {
  2295. sm_keyword_counter++;
  2296. }
  2297. }
  2298. if ((sm_keyword_local_array[sm_array_search(sm_flash_group_unique, window.SM_FLASH_RANK_ARRAY)]) && sm_keyword_local_array[sm_array_search(sm_flash_group_unique, window.SM_FLASH_RANK_ARRAY)] == true) {
  2299. delete sm_keyword_local_array[sm_array_search(sm_flash_group_unique, window.SM_FLASH_RANK_ARRAY)];
  2300. window.SM_KEYWORD_ARRAY = sm_keyword_local_array;
  2301. delete window.SM_FLASH_CURRENT_ARRAY[sm_flash_group_unique];
  2302. if (sm_active == 1) {
  2303. window.SM_FLASHBAR_BUILD = window.SM_FLASHBAR_BUILD.replace(window.SM_FLASH_REVERSE_ARRAY[sm_flash_group_unique] + " ", "");
  2304. sm_flashbar_activate();
  2305. sm_flashbar_character("");
  2306. if (window.SM_FLASHBAR_BUILD == "") {
  2307. sm_flashbar_reset();
  2308. }
  2309. }
  2310. sm_resummarize_process(0);
  2311. } else if (sm_keyword_counter < 5) {
  2312. sm_keyword_local_array[sm_array_search(sm_flash_group_unique, window.SM_FLASH_RANK_ARRAY)] = true;
  2313. window.SM_KEYWORD_ARRAY = sm_keyword_local_array;
  2314. window.SM_FLASH_CURRENT_ARRAY[sm_flash_group_unique] = true;
  2315. if (sm_active == 1) {
  2316. window.SM_FLASHBAR_BUILD += window.SM_FLASH_REVERSE_ARRAY[sm_flash_group_unique] + " ";
  2317. sm_flashbar_activate();
  2318. sm_flashbar_character("");
  2319. }
  2320. sm_resummarize_process(0);
  2321. } else {
  2322. document.getElementById('sm_flash_warning_container').style.top = (sm_object_position_top(sm_object) - 40) + "px";
  2323. document.getElementById('sm_flash_warning_container').style.left = (sm_object_position_left(sm_object) - 185) + "px";
  2324. sm_element_add("sm_flash_warning_container", 2);
  2325. setTimeout("sm_element_remove(\"sm_flash_warning_container\", 2);", 1800);
  2326. }
  2327. } else {
  2328. document.getElementById('sm_flash_info_container').style.top = (sm_object_position_top(sm_object) - 40) + "px";
  2329. document.getElementById('sm_flash_info_container').style.left = (sm_object_position_left(sm_object) + (sm_object.offsetWidth / 2) - 120) + "px";
  2330. sm_element_add("sm_flash_info_container", 2);
  2331. setTimeout("sm_element_remove(\"sm_flash_info_container\", 2);", 990);
  2332. }
  2333. }
  2334.  
  2335. function sm_flash_add(sm_flash_group_unique, sm_object, sm_active) {
  2336. if (sm_active == 1) {
  2337. for (sm_key in window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique]) {
  2338. if (document.getElementById("sm_flash_" + window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique][sm_key])) {
  2339. document.getElementById("sm_flash_" + window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique][sm_key]).style.backgroundColor = window.SM_FLASH_COLOUR_ARRAY[sm_flash_group_unique];
  2340. document.getElementById("sm_flash_" + window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique][sm_key]).style.cursor = 'pointer';
  2341. }
  2342. }
  2343. } else {
  2344. sm_object.style.backgroundColor = "#ead9ff";
  2345. sm_object.style.cursor = 'pointer';
  2346. }
  2347. }
  2348.  
  2349.  
  2350. function sm_flash_remove(sm_flash_group_unique, sm_object, sm_active) {
  2351. if (sm_active == 1) {
  2352. for (sm_key in window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique]) {
  2353. if (document.getElementById("sm_flash_" + window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique][sm_key]) && !window.SM_KEYWORD_ARRAY[sm_array_search(sm_flash_group_unique, window.SM_FLASH_RANK_ARRAY)]) {
  2354. document.getElementById("sm_flash_" + window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique][sm_key]).style.backgroundColor = "transparent";
  2355. }
  2356. }
  2357. } else {
  2358. sm_object.style.backgroundColor = "transparent";
  2359. }
  2360. }
  2361.  
  2362. function sm_flashbar_key_cycle() {
  2363. if (document.getElementById('sm_flashbar_key_input').value == "") {
  2364. setTimeout("sm_flashbar_key_cycle()", 1);
  2365. } else {
  2366. sm_flashbar_input();
  2367. }
  2368. }
  2369.  
  2370. function sm_flashbar_input() {
  2371. var sm_key = document.getElementById('sm_flashbar_key_input').value;
  2372. document.getElementById('sm_flashbar_key_input').value = "";
  2373. if (window.SM_FLASHBAR_BUSY == false && window.SM_FLASH_PROCESS_BLOCK == false) {
  2374. sm_flashbar_character(sm_key);
  2375. }
  2376. }
  2377.  
  2378. function sm_flashbar_recover() {
  2379. if (window.SM_FLASHBAR_SELECTED == true) {
  2380. setTimeout("document.getElementById('sm_flashbar_key_input').focus();", 1);
  2381. }
  2382. }
  2383.  
  2384. function sm_flashbar_rollback() {
  2385. if (window.SM_FLASHBAR_BUILD.length > 0) {
  2386. var sm_pointer = window.SM_FLASHBAR_BUILD.length - 1;
  2387. while (window.SM_FLASHBAR_BUILD.substr(sm_pointer, 1) != " " && window.SM_FLASHBAR_BUILD.length > 0) {
  2388. window.SM_FLASHBAR_BUILD = window.SM_FLASHBAR_BUILD.substr(0, sm_pointer);
  2389. sm_pointer--;
  2390. }
  2391. }
  2392. window.SM_FLASHBAR_TYPE_BLOCK = false;
  2393. }
  2394.  
  2395. function sm_flashbar_up() {
  2396. if (window.SM_FLASHBAR_NAV > 0) {
  2397. window.SM_FLASHBAR_NAV--;
  2398. }
  2399. var sm_counter = window.SM_FLASHBAR_NAV_MAX;
  2400. for (sm_key in window.SM_FLASHBAR_NAV_MENU) {
  2401. if (sm_counter == (window.SM_FLASHBAR_NAV + 1) && document.getElementById('sm_flashbar_list_element_' + (window.SM_FLASHBAR_NAV + 1))) {
  2402. document.getElementById('sm_flashbar_list_element_' + (window.SM_FLASHBAR_NAV + 1)).style.backgroundColor = window.SM_FLASHBAR_NAV_MENU[sm_key];
  2403. } else if (sm_counter != 0 && sm_counter == window.SM_FLASHBAR_NAV) {
  2404. sm_flashbar_outer_update(sm_key);
  2405. }
  2406. sm_counter--;
  2407. }
  2408. if (document.getElementById('sm_flashbar_list_element_' + window.SM_FLASHBAR_NAV)) {
  2409. document.getElementById('sm_flashbar_list_element_' + window.SM_FLASHBAR_NAV).style.backgroundColor = "#F60";
  2410. } else {
  2411. sm_flashbar_outer_update(false);
  2412. }
  2413. }
  2414.  
  2415. function sm_flashbar_down() {
  2416. if (window.SM_FLASHBAR_NAV < window.SM_FLASHBAR_NAV_MAX) {
  2417. window.SM_FLASHBAR_NAV++;
  2418. }
  2419. var sm_counter = window.SM_FLASHBAR_NAV_MAX;
  2420. for (sm_key in window.SM_FLASHBAR_NAV_MENU) {
  2421. if (sm_counter == (window.SM_FLASHBAR_NAV - 1) && document.getElementById('sm_flashbar_list_element_' + (window.SM_FLASHBAR_NAV - 1))) {
  2422. document.getElementById('sm_flashbar_list_element_' + (window.SM_FLASHBAR_NAV - 1)).style.backgroundColor = window.SM_FLASHBAR_NAV_MENU[sm_key];
  2423. } else if (sm_counter == window.SM_FLASHBAR_NAV) {
  2424. sm_flashbar_outer_update(sm_key);
  2425. }
  2426. sm_counter--;
  2427. }
  2428. if (document.getElementById('sm_flashbar_list_element_' + window.SM_FLASHBAR_NAV)) {
  2429. document.getElementById('sm_flashbar_list_element_' + window.SM_FLASHBAR_NAV).style.backgroundColor = "#F60";
  2430. }
  2431. }
  2432.  
  2433. function sm_flashbar_list_rebuild() {
  2434. var sm_counter = window.SM_FLASHBAR_NAV_MAX;
  2435. for (sm_key in window.SM_FLASHBAR_NAV_MENU) {
  2436. document.getElementById('sm_flashbar_list_element_' + sm_counter).style.backgroundColor = window.SM_FLASHBAR_NAV_MENU[sm_key];
  2437. sm_counter--;
  2438. }
  2439. }
  2440.  
  2441. function sm_flashbar_list_update(sm_flashbar_list_focus) {
  2442. sm_flashbar_list_build = "";
  2443. if (sm_flashbar_list_focus == "") {
  2444. var sm_flash_colour_local = new Array();
  2445. for (sm_key in window.SM_FLASH_COLOUR_ARRAY) {
  2446. if (typeof window.SM_FLASH_CURRENT_ARRAY[sm_key] == "undefined") {
  2447. sm_flash_colour_local[sm_key] = window.SM_FLASH_COLOUR_ARRAY[sm_key];
  2448. }
  2449. }
  2450. } else {
  2451. var sm_flash_colour_local = new Array();
  2452. for (sm_key in window.SM_FLASH_COLOUR_ARRAY) {
  2453. if ((window.SM_FLASH_REVERSE_ARRAY[sm_key]) && typeof window.SM_FLASH_CURRENT_ARRAY[sm_key] == "undefined" && window.SM_FLASH_REVERSE_ARRAY[sm_key].toLowerCase().substr(0, sm_flashbar_list_focus.length) == sm_flashbar_list_focus.toLowerCase()) {
  2454. sm_flash_colour_local[sm_key] = window.SM_FLASH_COLOUR_ARRAY[sm_key];
  2455. }
  2456. }
  2457. }
  2458. var sm_made = false;
  2459. var sm_counter = 0;
  2460. for (sm_key in sm_flash_colour_local) {
  2461. sm_counter++;
  2462. }
  2463. window.SM_FLASHBAR_NAV_MAX = sm_counter;
  2464. window.SM_FLASHBAR_NAV_MENU = sm_flash_colour_local;
  2465. for (sm_key in sm_flash_colour_local) {
  2466. sm_made = true;
  2467. sm_flashbar_list_build = "<span id=\"sm_flashbar_list_element_" + sm_counter + "\" style=\"background-color:" + sm_flash_colour_local[sm_key] + ";\" onclick=\"window.SM_FLASHBAR_LIST_BLOCK = true;sm_flashbar_add('" + sm_key + "')\" onmouseover=\"sm_flashbar_list_rebuild();window.SM_FLASHBAR_NAV = " + sm_counter + ";this.style.cursor = 'pointer';this.style.backgroundColor = '#F60';sm_flashbar_outer_update('" + sm_key + "');sm_flash_add('" + sm_key + "', this, 1);\" onmouseout=\"window.SM_FLASHBAR_NAV = 0;this.style.backgroundColor = '" + sm_flash_colour_local[sm_key] + "';sm_flashbar_outer_update(false);sm_flash_remove('" + sm_key + "', this, 1);\">" + window.SM_FLASH_REVERSE_ARRAY[sm_key].replace(/-/g, "&#8209;") + "</span><br />" + sm_flashbar_list_build;
  2468. sm_counter--;
  2469. }
  2470. var sm_counter = 0;
  2471. for (sm_key in window.SM_FLASH_CURRENT_ARRAY) {
  2472. sm_counter++;
  2473. }
  2474. if (sm_counter >= 5) {
  2475. window.SM_FLASHBAR_TYPE_BLOCK = true;
  2476. sm_flashbar_list_build = "<span id=\"sm_flashbar_empty\" style=\"position:relative;top:2px;background-color:#cccc00;font-size:18px;font-weight:bold;padding:2px;\">You&nbsp;cannot&nbsp;select&nbsp;more&nbsp;than&nbsp;5&nbsp;keywords.</span>";
  2477. var sm_flashbar_push_local = "0px";
  2478. setTimeout("sm_flashbar_pointer_manual(1)", 1);
  2479. } else if (sm_made == false) {
  2480. window.SM_FLASHBAR_TYPE_BLOCK = true;
  2481. sm_flashbar_list_build = "<span id=\"sm_flashbar_empty\" style=\"position:relative;top:2px;background-color:#cccc00;font-size:18px;font-weight:bold;padding:2px;\">No&nbsp;such&nbsp;keyword&nbsp;exists&nbsp;in&nbsp;this&nbsp;text.</span>";
  2482. var sm_flashbar_push_local = "0px";
  2483. } else {
  2484. window.SM_FLASHBAR_TYPE_BLOCK = false;
  2485. var sm_flashbar_push_local = window.SM_FLASHBAR_PUSH;
  2486. }
  2487. var sm_position_base = sm_object_position_top(document.getElementById('sm_flashbar_container'));
  2488. document.getElementById('sm_flashbar_pointer').style.top = (sm_position_base - 6) + "px";
  2489. document.getElementById('sm_flashbar_pointer_red').style.top = (sm_position_base - 6) + "px";
  2490. document.getElementById('sm_flashbar_box').style.top = (sm_position_base + 21) + "px";
  2491. document.getElementById('sm_flashbar_box_undercast').style.top = (sm_position_base + 21) + "px";
  2492. document.getElementById('sm_flashbar_box').innerHTML = "<div id=\"sm_flashbar_keyword_container\" align=\"left\" style=\"position:relative;left:" + sm_flashbar_push_local + ";width:1px;\">" + sm_flashbar_list_build + "</div>";
  2493. document.getElementById('sm_flashbar_box_undercast').style.height = document.getElementById('sm_flashbar_keyword_container').offsetHeight + "px";
  2494. return sm_flash_colour_local;
  2495. }
  2496.  
  2497. function sm_flashbar_build_process(sm_flashbar_build_local) {
  2498. var sm_flashbar_inner = "<span id=\"sm_flashbar_inner_set\">";
  2499. var sm_flashbar_outer = "";
  2500. var sm_flashbar_outer_match = "";
  2501. var sm_flashbar_list = "";
  2502. var sm_flashbar_build_last = sm_flashbar_build_local.substr(sm_flashbar_build_local.length - 1, 1);
  2503. if (sm_flashbar_build_local.search(/ /) != -1) {
  2504. var sm_flashbar_build_last_block = false;
  2505. var sm_flashbar_array = sm_flashbar_build_local.split(" ");
  2506. var sm_flashbar_array_length = sm_flashbar_array.length;
  2507. var sm_counter = 1;
  2508. for (sm_key in sm_flashbar_array) {
  2509. if (sm_flashbar_array_length == sm_counter && sm_flashbar_build_last != " ") {
  2510. sm_flashbar_inner += "</span>";
  2511. sm_flashbar_build_last_block = true;
  2512. }
  2513. if (sm_flashbar_array_length != sm_counter && window.SM_FLASH_COLOUR_ARRAY[window.SM_FLASH_SHORT_ARRAY[sm_flashbar_array[sm_key]]]) {
  2514. sm_flashbar_inner += "<span style=\"background-color:" + window.SM_FLASH_COLOUR_ARRAY[window.SM_FLASH_SHORT_ARRAY[sm_flashbar_array[sm_key]]] + ";\" onclick=\"window.SM_FLASHBAR_LIST_BLOCK = true;sm_flash_process('" + window.SM_FLASH_SHORT_ARRAY[sm_flashbar_array[sm_key]] + "', document.getElementById('sm_flashbox_main'), 1)\" onmouseover=\"this.style.cursor = 'pointer';window.SM_FLASHBAR_HOVER_SUB = true;\" onmouseout=\"window.SM_FLASHBAR_HOVER_SUB = false;\">" + sm_flashbar_array[sm_key] + "</span> ";
  2515. } else if (sm_flashbar_array_length == sm_counter) {
  2516. sm_flashbar_outer_match = sm_flashbar_array[sm_key];
  2517. sm_flashbar_inner += "<span style=\"background-color:#ead9ff;\">" + sm_flashbar_array[sm_key] + "</span>";
  2518. } else {
  2519. window.SM_FLASHBAR_BUILD = window.SM_FLASHBAR_BUILD.replace(sm_flashbar_array[sm_key] + " ", "");
  2520. }
  2521. sm_flashbar_list = sm_flashbar_array[sm_key];
  2522. sm_counter++;
  2523. }
  2524. if (sm_flashbar_build_last_block == false) {
  2525. sm_flashbar_inner += "</span>";
  2526. }
  2527. } else {
  2528. if (sm_flashbar_build_local != "") {
  2529. sm_flashbar_outer_match = sm_flashbar_build_local;
  2530. if (sm_flashbar_build_last == " " && window.SM_FLASH_COLOUR_ARRAY[window.SM_FLASH_SHORT_ARRAY[sm_flashbar_build_local]]) {
  2531. sm_flashbar_inner = "<span style=\"background-color:" + window.SM_FLASH_COLOUR_ARRAY[window.SM_FLASH_SHORT_ARRAY[sm_flashbar_build_local]] + ";\" onclick=\"window.SM_FLASHBAR_LIST_BLOCK = true;sm_flash_process('" + window.SM_FLASH_SHORT_ARRAY[sm_flashbar_array[sm_key]] + "', document.getElementById('sm_flashbox_main'), 1)\" onmouseover=\"this.style.cursor = 'pointer';window.SM_FLASHBAR_HOVER_SUB = true;\" onmouseout=\"window.SM_FLASHBAR_HOVER_SUB = false;\">" + sm_flashbar_build_local + "</span>";
  2532. } else {
  2533. sm_flashbar_inner = "<span style=\"background-color:#ead9ff;\">" + sm_flashbar_build_local + "</span>";
  2534. }
  2535. sm_flashbar_inner += "</span>";
  2536. sm_flashbar_list = sm_flashbar_build_local;
  2537. }
  2538. }
  2539.  
  2540. window.SM_FLASHBAR_OUTER_RAW = false;
  2541. window.SM_FLASHBAR_OUTER_RAW_RAW = false;
  2542. sm_flash_colour_remote = sm_flashbar_list_update(sm_flashbar_list);
  2543. var sm_flash_colour_remote_length = 0;
  2544. for (sm_key in sm_flash_colour_remote) {
  2545. sm_flash_colour_remote_length++;
  2546. }
  2547. if (sm_flash_colour_remote_length > 0 && sm_flashbar_outer_match != "") {
  2548. var sm_flashbar_nav_local = window.SM_FLASHBAR_NAV;
  2549. if (sm_flashbar_nav_local == 0) {
  2550. sm_flashbar_nav_local = 1;
  2551. }
  2552. var sm_flashbar_outer_complete = "";
  2553. var sm_counter = sm_flash_colour_remote_length;
  2554. for (sm_key in sm_flash_colour_remote) {
  2555. if (sm_counter == sm_flashbar_nav_local) {
  2556. window.SM_FLASHBAR_OUTER_RAW = sm_key;
  2557. window.SM_FLASHBAR_OUTER_RAW_RAW = sm_key;
  2558. var sm_flashbar_outer_complete = window.SM_FLASH_REVERSE_ARRAY[sm_key];
  2559. var sm_flashbar_outer_colour = sm_flash_colour_remote[sm_key];
  2560. sm_flashbar_outer_partial = sm_flashbar_outer_complete.substr(sm_flashbar_outer_match.length, sm_flashbar_outer_complete.length - sm_flashbar_outer_match.length);
  2561. sm_flashbar_outer = "<span style=\"background-color:" + sm_flashbar_outer_colour + "\">" + sm_flashbar_outer_partial + "</span>";
  2562. break;
  2563. }
  2564. sm_counter--;
  2565. }
  2566. }
  2567.  
  2568. window.SM_FLASHBAR_OUTER_MATCH = sm_flashbar_outer_match;
  2569.  
  2570. return "<span id=\"sm_flashbar_inner\">" + sm_flashbar_inner + "</span><span id=\"sm_flashbar_outer\">" + sm_flashbar_outer + "</span>";
  2571. }
  2572.  
  2573. function sm_flashbar_outer_update(sm_flashbar_keyword) {
  2574. if (document.getElementById('sm_flashbar_outer') && window.SM_FLASHBAR_TYPE_BLOCK == false) {
  2575. var sm_flashbar_outer_content = "";
  2576. if (sm_flashbar_keyword === false) {
  2577. if (window.SM_FLASHBAR_OUTER_RAW_RAW !== false) {
  2578. window.SM_FLASHBAR_OUTER_RAW = window.SM_FLASHBAR_OUTER_RAW_RAW;
  2579. sm_flashbar_outer_match = window.SM_FLASHBAR_OUTER_MATCH;
  2580. sm_flashbar_outer_complete = window.SM_FLASH_REVERSE_ARRAY[window.SM_FLASHBAR_OUTER_RAW];
  2581. sm_flashbar_outer_partial = sm_flashbar_outer_complete.substr(sm_flashbar_outer_match.length, sm_flashbar_outer_complete.length - sm_flashbar_outer_match.length);
  2582. sm_flashbar_outer_content = "<span style=\"background-color:" + window.SM_FLASH_COLOUR_ARRAY[window.SM_FLASHBAR_OUTER_RAW] + "\">" + sm_flashbar_outer_partial + "</span>";
  2583. } else {
  2584. window.SM_FLASHBAR_OUTER_RAW = false;
  2585. }
  2586. } else if (document.getElementById('sm_flashbar_outer') && typeof window.SM_FLASH_COLOUR_ARRAY[sm_flashbar_keyword] != "undefined") {
  2587. if (window.SM_FLASHBAR_OUTER_RAW_RAW !== false) {
  2588. sm_flashbar_outer_match = window.SM_FLASHBAR_OUTER_MATCH;
  2589. sm_flashbar_outer_complete = window.SM_FLASH_REVERSE_ARRAY[sm_flashbar_keyword];
  2590. sm_flashbar_outer_partial = sm_flashbar_outer_complete.substr(sm_flashbar_outer_match.length, sm_flashbar_outer_complete.length - sm_flashbar_outer_match.length);
  2591. } else {
  2592. sm_flashbar_outer_partial = window.SM_FLASH_REVERSE_ARRAY[sm_flashbar_keyword];
  2593. }
  2594. window.SM_FLASHBAR_OUTER_RAW = sm_flashbar_keyword;
  2595. sm_flashbar_outer_content = "<span style=\"background-color:" + window.SM_FLASH_COLOUR_ARRAY[sm_flashbar_keyword] + "\">" + sm_flashbar_outer_partial + "</span>";
  2596. }
  2597. document.getElementById('sm_flashbar_outer').innerHTML = sm_flashbar_outer_content;
  2598. }
  2599. }
  2600.  
  2601. function sm_flashbar_add(sm_flashbar_keyword) {
  2602. window.SM_FLASHBAR_NAV = 0;
  2603. setTimeout("document.getElementById('sm_flashbar_key_input').focus()", 1);
  2604. sm_element_snap_add("sm_loading_notice");
  2605. sm_flashbar_rollback();
  2606. window.SM_FLASHBAR_OUTER_RAW = false;
  2607. window.SM_FLASHBAR_OUTER_RAW_RAW = false;
  2608. sm_flashbar_character(window.SM_FLASH_REVERSE_ARRAY[sm_flashbar_keyword]);
  2609. sm_flash_process(sm_flashbar_keyword, document.getElementById('sm_flashbar_main'), 2);
  2610. window.SM_FLASHBAR_OUTER_RAW = false;
  2611. window.SM_FLASHBAR_OUTER_RAW_RAW = false;
  2612. sm_flashbar_character(" ");
  2613. }
  2614.  
  2615. function sm_flashbar_delete() {
  2616. window.SM_FLASHBAR_NAV = 0;
  2617. if (window.SM_FLASHBAR_BUILD.search(/ /) != -1) {
  2618. var sm_flashbar_array = window.SM_FLASHBAR_BUILD.split(" ");
  2619. delete sm_flashbar_array[sm_flashbar_array.length - 1];
  2620. for (sm_key in window.SM_FLASH_CURRENT_ARRAY) {
  2621. if (sm_array_search(window.SM_FLASH_REVERSE_ARRAY[sm_key], sm_flashbar_array) === false) {
  2622. window.SM_FLASHBAR_PURGE_BLOCK = true;
  2623. sm_element_snap_add("sm_loading_notice");
  2624. sm_flash_process(sm_key, document.getElementById('sm_flashbar_main'), 2);
  2625. window.SM_FLASHBAR_OUTER_RAW = sm_key;
  2626. window.SM_FLASHBAR_OUTER_RAW_RAW = sm_key;
  2627. }
  2628. }
  2629. } else {
  2630. for (sm_key in window.SM_FLASH_CURRENT_ARRAY) {
  2631. window.SM_FLASHBAR_PURGE_BLOCK = true;
  2632. sm_element_snap_add("sm_loading_notice");
  2633. sm_flash_process(sm_key, document.getElementById('sm_flashbar_main'), 2);
  2634. window.SM_FLASHBAR_OUTER_RAW = sm_key;
  2635. window.SM_FLASHBAR_OUTER_RAW_RAW = sm_key;
  2636. }
  2637. }
  2638. }
  2639.  
  2640. function sm_flashbar_character(sm_character) {
  2641. window.SM_FLASHBAR_BUSY = true;
  2642. if (sm_character == null) {
  2643. if (window.SM_FLASHBAR_BUILD.length > 0) {
  2644. window.SM_FLASHBAR_BUILD = window.SM_FLASHBAR_BUILD.substr(0, window.SM_FLASHBAR_BUILD.length - 1);
  2645. sm_flashbar_delete();
  2646. }
  2647. } else if (window.SM_FLASHBAR_TYPE_BLOCK == true || (sm_character == " " && window.SM_FLASHBAR_BUILD.substr(window.SM_FLASHBAR_BUILD.length - 1, 1) == " " && window.SM_FLASHBAR_OUTER_RAW === false) || (sm_character == " " && window.SM_FLASHBAR_BUILD == "" && window.SM_FLASHBAR_OUTER_RAW === false)) {
  2648. sm_flashbar_type_error();
  2649. window.SM_FLASHBAR_BUSY = false;
  2650. return false;
  2651. } else {
  2652. if (sm_character == " " && window.SM_FLASHBAR_OUTER_RAW !== false) {
  2653. sm_flashbar_add(window.SM_FLASHBAR_OUTER_RAW);
  2654. window.SM_FLASHBAR_BUSY = false;
  2655. return true;
  2656. } else {
  2657. window.SM_FLASHBAR_BUILD += sm_character;
  2658. }
  2659. }
  2660. document.getElementById('sm_flashbar_main').innerHTML = sm_flashbar_build_process(window.SM_FLASHBAR_BUILD);
  2661. var sm_flashbar_build_last = window.SM_FLASHBAR_BUILD.substr(window.SM_FLASHBAR_BUILD.length - 1, 1);
  2662. if (document.getElementById('sm_flashbar_inner')) {
  2663. var sm_flashbar_pointer_push = document.getElementById('sm_flashbar_inner').offsetWidth;
  2664. if (sm_flashbar_build_last == " ") {
  2665. sm_flashbar_pointer_push += 6;
  2666. }
  2667. } else {
  2668. var sm_flashbar_pointer_push = 0;
  2669. }
  2670. document.getElementById('sm_flashbar_pointer').style.marginLeft = (-345 + sm_flashbar_pointer_push) + "px";
  2671. document.getElementById('sm_flashbar_pointer_red').style.marginLeft = (-345 + sm_flashbar_pointer_push) + "px";
  2672. if (document.getElementById('sm_flashbar_inner_set')) {
  2673. var sm_flashbar_inner_set_width = document.getElementById('sm_flashbar_inner_set').offsetWidth;
  2674. if (sm_flashbar_build_last == " ") {
  2675. sm_flashbar_inner_set_width += 6;
  2676. }
  2677. } else {
  2678. var sm_flashbar_inner_set_width = 0;
  2679. }
  2680. if (document.getElementById('sm_flashbar_empty')) {
  2681. document.getElementById('sm_flashbar_keyword_container').style.left = "0px";
  2682. } else {
  2683. document.getElementById('sm_flashbar_keyword_container').style.left = (-341 + (sm_flashbar_inner_set_width + 342)) + "px";
  2684. }
  2685. window.SM_FLASHBAR_PUSH = document.getElementById('sm_flashbar_keyword_container').style.left;
  2686. window.SM_FLASHBAR_BUSY = false;
  2687. }
  2688.  
  2689. function sm_flashbar_type_error() {
  2690. if (window.SM_FLASHBAR_SELECTED == true && window.SM_FLASHBAR_TYPE_ERROR == false) {
  2691. window.SM_FLASHBAR_TYPE_ERROR = true;
  2692. sm_element_add("sm_flashbar_pointer_red", 0);
  2693. setTimeout("sm_element_remove(\"sm_flashbar_pointer_red\", 12);", 1000);
  2694. setTimeout("window.SM_FLASHBAR_TYPE_ERROR = false;", 1200);
  2695. }
  2696. }
  2697.  
  2698. function sm_flashbar_pointer_manual(sm_with_space) {
  2699. sm_flashbar_pointer_push = document.getElementById('sm_flashbar_inner_set').offsetWidth;
  2700. if (sm_with_space == 1) {
  2701. sm_flashbar_pointer_push += 6;
  2702. }
  2703. document.getElementById('sm_flashbar_pointer').style.marginLeft = (-345 + sm_flashbar_pointer_push) + "px";
  2704. document.getElementById('sm_flashbar_pointer_red').style.marginLeft = (-345 + sm_flashbar_pointer_push) + "px";
  2705. }
  2706.  
  2707. function sm_flashbar_mouseover() {
  2708. document.getElementById('sm_flashbar_main').style.cursor = 'text';
  2709. window.SM_FLASHBAR_HOVER = true;
  2710. }
  2711.  
  2712. function sm_flashbar_mouseout() {
  2713. window.SM_FLASHBAR_HOVER = false;
  2714. }
  2715.  
  2716. function sm_flashbar_select() {
  2717. document.getElementById('sm_flashbar_main').style.borderColor = "#ead9ff";
  2718. sm_element_add("sm_flashbar_box_undercast", 2, 70);
  2719. sm_element_add("sm_flashbar_box", 2);
  2720. sm_element_add("sm_flashbar_pointer", 2);
  2721. window.SM_FLASHBAR_SELECTED = true;
  2722. }
  2723.  
  2724. function sm_flashbar_unselect() {
  2725. document.getElementById('sm_flashbar_main').style.borderColor = "#666";
  2726. sm_element_remove("sm_flashbar_box_undercast", 2, 70);
  2727. sm_element_remove("sm_flashbar_box", 2);
  2728. sm_element_remove("sm_flashbar_pointer", 2);
  2729. sm_element_remove("sm_flashbar_pointer_red", 2);
  2730. window.SM_FLASHBAR_SELECTED = false;
  2731. window.SM_FLASHBAR_HOVER_SUB = false;
  2732. }
  2733.  
  2734. function sm_flashbar_activate() {
  2735. if (window.SM_FLASHBAR_BUILD != "") {
  2736. document.getElementById('sm_flashbar_main').innerHTML = sm_flashbar_build_process(window.SM_FLASHBAR_BUILD);
  2737. } else {
  2738. document.getElementById('sm_flashbar_main').innerHTML = sm_flashbar_build_process("");
  2739. }
  2740. document.getElementById('sm_flashbar_main').style.color = "#000";
  2741. window.SM_FLASHBAR_STATUS = true;
  2742. }
  2743.  
  2744. function sm_flashbar_reset() {
  2745. if (window.SM_FLASHBAR_SELECTED == false) {
  2746. document.getElementById('sm_flashbar_main').innerHTML = "Add keywords here to make this summary more specific to a topic.";
  2747. document.getElementById('sm_flashbar_main').style.color = "#666";
  2748. window.SM_FLASHBAR_STATUS = false;
  2749. }
  2750. }
  2751.  
  2752. function sm_flashbar_initial() {
  2753. window.SM_FLASHBAR_BUSY = false;
  2754. window.SM_FLASHBAR_PUSH = "2px";
  2755. window.SM_FLASHBAR_NAV = 0;
  2756. window.SM_FLASHBAR_NAV_MAX = 0;
  2757. window.SM_FLASHBAR_NAV_MENU = false;
  2758. window.SM_FLASHBAR_TYPE_BLOCK = false;
  2759. window.SM_FLASHBAR_OUTER_RAW = false;
  2760. window.SM_FLASHBAR_OUTER_RAW_RAW = false;
  2761. window.SM_FLASHBAR_BUILD = "";
  2762. window.SM_FLASHBAR_HOVER = false;
  2763. window.SM_FLASHBAR_HOVER_SUB = false;
  2764. window.SM_FLASHBAR_SELECTED = false;
  2765. window.SM_FLASHBAR_STATUS = false;
  2766. window.SM_FLASHBAR_PURGE_BLOCK = false;
  2767. window.SM_FLASHBAR_TYPE_ERROR = false;
  2768. window.SM_FLASHBAR_OUTER_MATCH = false;
  2769. window.SM_FLASHBAR_LIST_BLOCK = false;
  2770. window.SM_FLASHBAR_DOWN_STORE = false;
  2771. window.SM_FLASHBAR_UP_STORE = false;
  2772. sm_flashbar_reset();
  2773. }
  2774.  
  2775. function sm_flashbar_global() {
  2776. if (window.SM_FLASHBAR_LIST_BLOCK == false && window.SM_FLASHBAR_HOVER == true && window.SM_FLASHBAR_SELECTED == false && window.SM_FLASHBAR_HOVER_SUB == false) {
  2777. sm_flashbar_select();
  2778. sm_flashbar_activate();
  2779. setTimeout("document.getElementById('sm_flashbar_key_input').focus()", 1);
  2780. } else if (window.SM_FLASHBAR_LIST_BLOCK == false && window.SM_FLASHBAR_HOVER == false && window.SM_FLASHBAR_HOVER_SUB == false) {
  2781. sm_flashbar_unselect();
  2782. if (window.SM_FLASHBAR_BUILD == "") {
  2783. sm_flashbar_reset();
  2784. }
  2785. document.getElementById('sm_flashbar_key_input').blur();
  2786. } else if (window.SM_FLASHBAR_LIST_BLOCK == false && window.SM_FLASHBAR_HOVER == true) {
  2787. setTimeout("document.getElementById('sm_flashbar_key_input').focus()", 1);
  2788. }
  2789. window.SM_FLASHBAR_LIST_BLOCK = false;
  2790. }
  2791.  
  2792. function sm_load_complete() {
  2793. window.SM_LOAD_MAIN = false;
  2794. }
  2795.  
  2796. function sm_load_add_delay_complete() {
  2797. window.SM_LOAD_DELAY_EXTRA = false;
  2798. }
  2799.  
  2800. function sm_load_add_delay(sm_initial) {
  2801. if (window.SM_LOAD_HTTP == true) {
  2802. window.SM_LOAD_SIDE_STATE = true;
  2803. window.SM_LOAD_DELAY_EXTRA = true;
  2804. if (window.SM_FLASHBAR_SELECTED == true) {
  2805. sm_flashbar_unselect();
  2806. }
  2807. sm_scroll_enable(1);
  2808. if (sm_initial == 0) {
  2809. setTimeout("sm_heat_map_remove()", 100);
  2810. setTimeout("document.getElementById(\"sm_secondary_upper_bar\").style.zIndex = \"-10\";", 10);
  2811. setTimeout("document.getElementById(\"sm_lower_container\").style.zIndex = \"-10\";", 10);
  2812. if (window.SM_SPECIFY_TOPIC_STATE > 0) {
  2813. setTimeout("sm_specify_topic_remove()", 100);
  2814. setTimeout("sm_slide_d(\"sm_secondary_upper_bar\", -1, 35, 1, 8, 3, 1);", 240);
  2815. setTimeout("sm_slide_e(\"sm_lower_container\", -1, -50, -1, 8, 3, 1);", 240);
  2816. } else {
  2817. setTimeout("sm_slide_d(\"sm_secondary_upper_bar\", -1, 35, 1, 8, 3, 1);", 100);
  2818. setTimeout("sm_slide_e(\"sm_lower_container\", -1, -35, -1, 8, 3, 1);", 100);
  2819. }
  2820. setTimeout("sm_element_remove(\"sm_secondary_inner_interface\", 2);", 200);
  2821. setTimeout("sm_element_remove(\"sm_secondary_text_style\", 2);", 200);
  2822. setTimeout("sm_element_add(\"sm_secondary_interface\", 2);", 200);
  2823. setTimeout("sm_load_shade_pulse();", 300);
  2824. setTimeout("sm_load_add_delay_complete()", 310);
  2825. window.SM_LOAD_SHADE_CONTINUE = true;
  2826. }
  2827. }
  2828. }
  2829.  
  2830. function sm_load_add(sm_initial) {
  2831. window.SM_LOAD_MAIN = true;
  2832. if (sm_initial == 1) {
  2833. window.SM_LOAD_SHADE_CONTINUE = true;
  2834. sm_load_shade_pulse();
  2835. }
  2836. window.SM_LOAD_DELAY_EXTRA = false;
  2837. setTimeout("sm_load_add_delay(" + sm_initial + ")", 800);
  2838. document.getElementById("sm_secondary_upper_bar").style.zIndex = "-10";
  2839. document.getElementById("sm_lower_container").style.zIndex = "-10";
  2840. setTimeout("sm_load_complete()", 200);
  2841. }
  2842.  
  2843. function sm_load_remove_wait(sm_append, sm_initial) {
  2844. if (window.SM_LOAD_MAIN == true) {
  2845. setTimeout("sm_load_remove_wait(" + sm_append + ", " + sm_initial + ")", 10);
  2846. } else {
  2847. if (window.SM_LOAD_DELAY_EXTRA == true) {
  2848. window.SM_LOAD_DELAY_EXTRA = false;
  2849. setTimeout("sm_load_remove(" + sm_append + ", " + sm_initial + ");", 300);
  2850. } else {
  2851. sm_load_remove(sm_append, sm_initial);
  2852. }
  2853. }
  2854. }
  2855.  
  2856. function sm_load_remove(sm_append, sm_initial) {
  2857. var sm_title = sm_stripslashes(window.SM_BATON_TITLE);
  2858. var sm_output = sm_stripslashes(window.SM_BATON_OUTPUT);
  2859. delete window.SM_BATON_TITLE;
  2860. delete window.SM_BATON_OUTPUT;
  2861. if (sm_append == 1) {
  2862. if (2 == 2) {
  2863. document.getElementById('sm_title_container').innerHTML = sm_title;
  2864. document.title = sm_title;
  2865. }
  2866. document.getElementById("sm_container_output").innerHTML = sm_output;
  2867. }
  2868. sm_element_snap_add("sm_secondary_interface");
  2869. window.SM_LOAD_SHADE_CONTINUE = false;
  2870. sm_element_snap_remove("sm_load_shade");
  2871. sm_element_snap_add("sm_secondary_upper_bar");
  2872. sm_element_snap_add("sm_flashbar_container");
  2873. sm_element_snap_add("sm_lower_container");
  2874. if (window.SM_LOAD_SIDE_STATE == true) {
  2875. sm_slide_d("sm_secondary_upper_bar", 35, -1, -1, 8, 3, 1);
  2876. sm_slide_e("sm_lower_container", -35, -1, 1, 8, 3, 1);
  2877. } else {
  2878. document.getElementById('sm_secondary_upper_bar').style.top = "-1px";
  2879. document.getElementById('sm_lower_container').style.top = "1px";
  2880. }
  2881. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  2882. var sm_quick_transitions_reduce = 690;
  2883. } else {
  2884. var sm_quick_transitions_reduce = 0;
  2885. }
  2886. if ((window.SM_LOAD_SIDE_STATE == true && window.SM_SPECIFY_TOPIC_STATE > 0) || (sm_initial == 1 && window.SM_SPECIFY_TOPIC_STATE > 0)) {
  2887. setTimeout("sm_specify_topic_add()", 700 - sm_quick_transitions_reduce);
  2888. } else if (sm_initial == 1 && window.SM_KEYWORD_ARRAY.length != 0) {
  2889. setTimeout("sm_specify_topic_indeterminate();", 700 - sm_quick_transitions_reduce);
  2890. }
  2891. if (window.SM_LOAD_SIDE_STATE = true) {
  2892. window.SM_LOAD_SIDE_STATE = false;
  2893. }
  2894. sm_element_add("sm_secondary_inner_interface", 2);
  2895. sm_element_add("sm_secondary_text_style", 2);
  2896. sm_flash_purge();
  2897. if (window.SM_VIEW_FIXED == false) {
  2898. setTimeout("sm_scroll_disable(1);", 10);
  2899. } else {
  2900. document.getElementById('sm_secondary_inner_interface').style.overflow = "auto";
  2901. }
  2902. setTimeout("document.getElementById(\"sm_secondary_upper_bar\").style.zIndex = \"10\";", 800 - sm_quick_transitions_reduce);
  2903. setTimeout("document.getElementById(\"sm_lower_container\").style.zIndex = \"10\";", 800 - sm_quick_transitions_reduce);
  2904. }
  2905.  
  2906. function sm_load_shade_pulse() {
  2907. sm_load_shade_execute("document.getElementById(\"sm_load_shade\").style.top = \"-15px\";", 100);
  2908. sm_load_shade_execute("sm_element_add(\"sm_load_shade\", 2);", 100);
  2909. sm_load_shade_execute("sm_load_shade_plus()", 200);
  2910. }
  2911.  
  2912. function sm_load_shade_plus() {
  2913. if (window.SM_LOAD_SHADE_CONTINUE == true) {
  2914. sm_slide_c("sm_load_shade", 0, -14, 258, 1, 60, 7, 1);
  2915. sm_load_shade_pause();
  2916. } else {
  2917. sm_element_snap_remove("sm_load_shade");
  2918. }
  2919. }
  2920.  
  2921. function sm_load_shade_pause() {
  2922. if (window.SM_SLIDE_ELEMENT_C == null) {
  2923. sm_element_remove("sm_load_shade", 2);
  2924. sm_load_shade_pulse();
  2925. } else {
  2926. sm_load_shade_execute("sm_load_shade_pause()", 20)
  2927. }
  2928. }
  2929.  
  2930. function sm_load_shade_execute(sm_execute, sm_delay) {
  2931. if (window.SM_LOAD_SHADE_CONTINUE == true) {
  2932. setTimeout(sm_execute, sm_delay);
  2933. } else {
  2934. sm_element_remove("sm_load_shade", 0);
  2935. }
  2936. }
  2937.  
  2938. function sm_input_out() {
  2939. if (window.SM_INPUT_OUT == false) {
  2940. window.SM_INPUT_OUT = true;
  2941. sm_singular_method_check();
  2942. sm_element_add("sm_input_clear", 2);
  2943. sm_slide_b("sm_input_clear", -260, -280, -1, 8, 3, 0);
  2944. }
  2945. }
  2946.  
  2947. function sm_input_in() {
  2948. if (window.SM_INPUT_OUT == true) {
  2949. window.SM_INPUT_OUT = false;
  2950. sm_singular_method_check();
  2951. sm_element_remove("sm_input_clear", 2);
  2952. sm_slide_b("sm_input_clear", -280, -260, 1, 8, 3, 0);
  2953. }
  2954. }
  2955.  
  2956. function sm_input_clear_execute() {
  2957. document.getElementById('sm_input').value = "";
  2958. sm_input_alone();
  2959. sm_input_in();
  2960. }
  2961.  
  2962. function sm_force_url_out() {
  2963. if (window.SM_FORCE_URL_OUT == false) {
  2964. window.SM_FORCE_URL_OUT = true;
  2965. sm_singular_method_check();
  2966. sm_element_add("sm_force_url_follow", 2);
  2967. sm_slide_a("sm_force_url_follow", 260, 280, 1, 8, 3, 0);
  2968. sm_element_add("sm_force_url_clear", 2);
  2969. sm_slide_b("sm_force_url_clear", -260, -280, -1, 8, 3, 0);
  2970. }
  2971. }
  2972.  
  2973. function sm_force_url_in() {
  2974. if (window.SM_FORCE_URL_OUT == true) {
  2975. window.SM_FORCE_URL_OUT = false;
  2976. sm_singular_method_check();
  2977. sm_element_remove("sm_force_url_follow", 2);
  2978. sm_slide_a("sm_force_url_follow", 280, 260, -1, 8, 3, 0);
  2979. sm_element_remove("sm_force_url_clear", 2);
  2980. sm_slide_b("sm_force_url_clear", -280, -260, 1, 8, 3, 0);
  2981. }
  2982. }
  2983.  
  2984. function sm_force_url_clear_execute() {
  2985. document.getElementById('sm_force_url').value = "";
  2986. sm_force_url_alone();
  2987. sm_force_url_in();
  2988. }
  2989.  
  2990. function sm_force_url_follow_execute() {
  2991. var sm_follow_url = document.getElementById('sm_force_url').value;
  2992. if (sm_follow_url.substring(0, 7) != "http://" && sm_follow_url.substring(0, 8) != "https://") {
  2993. sm_follow_url = "http://" + sm_follow_url;
  2994. }
  2995. window.location = sm_follow_url;
  2996. }
  2997.  
  2998. function sm_singular_method_check() {
  2999. var sm_counter = 0;
  3000. if (window.SM_INPUT_OUT == true) {
  3001. sm_counter++;
  3002. }
  3003. if (window.SM_FORCE_URL_OUT == true) {
  3004. sm_counter++;
  3005. }
  3006. if (document.getElementById('sm_force_upload_file').value != "sm_null") {
  3007. sm_counter++;
  3008. }
  3009. var sm_submit_disabled = null;
  3010. if (sm_counter > 1) {
  3011. sm_errorbar_message("PLEASE USE ONLY ONE METHOD OF INPUT", "primary");
  3012. sm_submit_disabled = true;
  3013. } else if (window.SM_ERRORBAR_REMOVE_BLOCK_PRIMARY == false) {
  3014. sm_errorbar_clear("primary");
  3015. sm_submit_disabled = false;
  3016. } else {
  3017. window.SM_ERRORBAR_REMOVE_BLOCK_PRIMARY = false;
  3018. }
  3019.  
  3020. if (document.getElementById('sm_count_primary').value > 40) {
  3021. sm_submit_disabled = true;
  3022. }
  3023. if (document.getElementById('sm_count_primary').value == 0) {
  3024. sm_submit_disabled = true;
  3025. }
  3026. if (document.getElementById('sm_count_primary').value > 40 && document.getElementById('sm_count_error_primary').style.display == "none") {
  3027. document.getElementById('sm_count_error_primary').innerHTML = window.SM_MAX_SENTENCE;
  3028. sm_element_add("sm_count_error_primary", 2);
  3029. }
  3030. if (document.getElementById('sm_count_primary').value == 0 && document.getElementById('sm_count_error_primary').style.display == "none") {
  3031. document.getElementById('sm_count_error_primary').innerHTML = window.SM_MIN_SENTENCE;
  3032. sm_element_add("sm_count_error_primary", 2);
  3033. }
  3034. if (document.getElementById('sm_count_primary').value <= 40 && document.getElementById('sm_count_primary').value > 0 && document.getElementById('sm_count_error_primary').style.display == "block") {
  3035. sm_element_remove("sm_count_error_primary", 2);
  3036. }
  3037. document.getElementById('sm_submit').disabled = sm_submit_disabled;
  3038. }
  3039.  
  3040. function sm_errorbar_clear(sm_errorbar) {
  3041. sm_element_remove('sm_errorbar_' + sm_errorbar, 5);
  3042. }
  3043.  
  3044. function sm_errorbar_message(sm_message, sm_errorbar) {
  3045. document.getElementById('sm_errorbar_' + sm_errorbar).innerHTML = "<div style=\"display:inline-block;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:17px;font-weight:bold;background-color:#EEFA11;padding:2px;\">&nbsp;" + sm_message + "&nbsp;</div>";
  3046. sm_element_add('sm_errorbar_' + sm_errorbar, 10);
  3047. }
  3048.  
  3049. function sm_upload_initiate() {
  3050. var uploader = new qq.FileUploader({
  3051. element: document.getElementById('sm_upload_instance'),
  3052. action: 'https://smmry.com/sm_upload_process.php',
  3053. debug: false
  3054. });
  3055. }
  3056.  
  3057. function sm_save_process(sm_post_toggle) {
  3058. if (window.SM_USER_ARRAY == false) {
  3059. return false;
  3060. }
  3061. if (sm_post_toggle == 1) {
  3062. window.SM_POST_PART = false;
  3063. if (window.SM_USER_ARRAY == true) {
  3064. window.SM_POST_USER_ID = window.SM_USER_ID;
  3065. }
  3066. document.getElementById('sm_post_part_3').style.display = "none";
  3067. document.getElementById('sm_post_part_2').style.display = "none";
  3068. document.getElementById('sm_post_part_1').style.display = "inline";
  3069. document.getElementById('sm_share_summary').disabled = true;
  3070. document.getElementById('sm_post_public_check_enable').checked = false;
  3071. document.getElementById('sm_post_public_check_disable').checked = false;
  3072. } else {
  3073. window.SM_POST_PART = true;
  3074. document.getElementById('sm_post_part_3').style.display = "none";
  3075. document.getElementById('sm_post_part_2').style.display = "inline";
  3076. document.getElementById('sm_post_part_1').style.display = "none";
  3077. document.getElementById('sm_share_summary').disabled = true;
  3078. }
  3079. sm_http_connect("https://smmry.com/sm_post_toggle.php?sm_post_mode=2&sm_post_toggle=" + sm_post_toggle + "&sm_post_public=0&sm_post_id=http://money.cnn.com/2018/04/01/news/sports-betting-supreme-court-new-jersey/index.html&sm_pass_hash=" + window.location.hash.replace("#", "") + "&sm_signature=" + window.SM_SIGNATURE);
  3080. }
  3081.  
  3082. function sm_save_public_update() {
  3083. if (document.getElementById('sm_post_public_check_enable').checked == true) {
  3084. var sm_post_public = 1;
  3085. document.getElementById('sm_share_summary').disabled = false;
  3086. document.getElementById('sm_post_public_check_disable').checked = true;
  3087. } else {
  3088. var sm_post_public = 0;
  3089. document.getElementById('sm_share_summary').disabled = true;
  3090. document.getElementById('sm_post_public_check_disable').checked = false;
  3091. if (document.getElementById('sm_share_container').style.display != "none") {
  3092. sm_share_summary_remove();
  3093. }
  3094. }
  3095. sm_http_connect("https://smmry.com/sm_post_toggle.php?sm_post_mode=1&sm_post_toggle=0&sm_post_public=" + sm_post_public + "&sm_post_id=http://money.cnn.com/2018/04/01/news/sports-betting-supreme-court-new-jersey/index.html" + "&sm_signature=" + window.SM_SIGNATURE);
  3096. }
  3097.  
  3098. function sm_rate_summary_info_add(sm_info_id, sm_object) {
  3099. var sm_info_content = "";
  3100. if (sm_info_id == "sm_informativeness_score") {
  3101. sm_info_content = "How well does this summary provide relevant descriptive information?"
  3102. } else if (sm_info_id == "sm_pithiness_score") {
  3103. sm_info_content = "How dense and efficient is this summary?"
  3104. } else if (sm_info_id == "sm_clarity_score") {
  3105. sm_info_content = "How clear and easy to understand is this summary?"
  3106. } else if (sm_info_id == "sm_error_score") {
  3107. sm_info_content = "Does this summary contain any mistakes/faults?<br />e.g. Missing punctuation."
  3108. }
  3109. document.getElementById('sm_rate_summary_info_container').innerHTML = sm_info_content;
  3110. document.getElementById('sm_rate_summary_info_container').style.top = (sm_object_position_top(sm_object) - 80) + "px";
  3111. document.getElementById('sm_rate_summary_info_container').style.left = (sm_object_position_left(sm_object) - 150) + "px";
  3112. sm_element_add("sm_rate_summary_info_container", 3);
  3113. }
  3114.  
  3115. function sm_rate_summary_info_remove() {
  3116. sm_element_remove("sm_rate_summary_info_container", 3);
  3117. }
  3118.  
  3119. function sm_rate_summary_clear(sm_object) {
  3120. sm_object.style.outlineWidth = "0px";
  3121. if (sm_object.value.length != 0 && parseFloat(sm_object.value) == sm_object.value && sm_object.value > 5) {
  3122. sm_object.value = 5;
  3123. }
  3124. }
  3125.  
  3126. function sm_rate_summary_process() {
  3127. var sm_rate_pass = true;
  3128. if (document.getElementById('sm_informativeness_score').value.length == 0) {
  3129. document.getElementById('sm_informativeness_score').style.outlineWidth = "4px";
  3130. sm_rate_pass = false;
  3131. } else {
  3132. document.getElementById('sm_informativeness_score').style.outlineWidth = "0px";
  3133. }
  3134. if (document.getElementById('sm_pithiness_score').value.length == 0) {
  3135. document.getElementById('sm_pithiness_score').style.outlineWidth = "4px";
  3136. sm_rate_pass = false;
  3137. } else {
  3138. document.getElementById('sm_clarity_score').style.outlineWidth = "0px";
  3139. }
  3140. if (document.getElementById('sm_clarity_score').value.length == 0) {
  3141. document.getElementById('sm_clarity_score').style.outlineWidth = "4px";
  3142. sm_rate_pass = false;
  3143. } else {
  3144. document.getElementById('sm_clarity_score').style.outlineWidth = "0px";
  3145. }
  3146. if (sm_rate_pass == true) {
  3147. var sm_parameters = "SM_CHAR_AMPSM_LENGTH=" + document.getElementById('sm_count_secondary').value;
  3148. if (document.getElementById('sm_check_question_avoid_visual').checked == true) {
  3149. sm_parameters += "SM_CHAR_AMPSM_QUESTION_AVOID";
  3150. }
  3151. if (document.getElementById('sm_check_exclamation_avoid_visual').checked == true) {
  3152. sm_parameters += "SM_CHAR_AMPSM_EXLAMATION_AVOID";
  3153. }
  3154. if (document.getElementById('sm_check_quote_avoid_visual').checked == true) {
  3155. sm_parameters += "SM_CHAR_AMPSM_QUOTE_AVOID";
  3156. }
  3157. if (document.getElementById('sm_check_heat_map_visual').checked == true) {
  3158. sm_parameters += "SM_CHAR_AMPSM_HEAT_MAP";
  3159. }
  3160. sm_element_snap_remove('sm_rate_container');
  3161. sm_element_snap_add('sm_feedback_container');
  3162. sm_http_connect("https://smmry.com/sm_rate.php?sm_rate_key=68688d9b429490eab594064e4149e2b0&sm_informativeness_score=" + document.getElementById('sm_informativeness_score').value + "&sm_pithiness_score=" + document.getElementById('sm_pithiness_score').value + "&sm_clarity_score=" + document.getElementById('sm_clarity_score').value + "&sm_error_score=" + document.getElementById('sm_error_score').value + "&sm_parameters=" + sm_parameters);
  3163. setTimeout("sm_element_remove(\"sm_feedback_container\", 3);", 2500);
  3164. setTimeout("sm_element_add(\"sm_lower_container\", 3);", 2720);
  3165. }
  3166. }
  3167.  
  3168. function sm_rate_summary_initiate() {
  3169. sm_element_remove("sm_lower_container", 3);
  3170. setTimeout("sm_element_add(\"sm_rate_container\", 3);", 220);
  3171. }
  3172.  
  3173. function sm_rate_summary_remove() {
  3174. sm_element_remove("sm_rate_container", 3);
  3175. setTimeout("sm_element_add(\"sm_lower_container\", 3);", 220);
  3176. setTimeout("document.getElementById('sm_informativeness_score').style.outlineWidth = \"0px\";document.getElementById('sm_informativeness_score').value = \"\";document.getElementById('sm_clarity_score').style.outlineWidth = \"0px\";document.getElementById('sm_clarity_score').value = \"\";document.getElementById('sm_pithiness_score').style.outlineWidth = \"0px\";document.getElementById('sm_pithiness_score').value = \"\";document.getElementById('sm_error_score').checked = false;", 220);
  3177. }
  3178.  
  3179. function sm_share_connect_load() {
  3180. if (document.getElementById('sm_share_connect').src.length > 0) {
  3181. document.getElementById('sm_share_connect_load_element').style.display = "none";
  3182. document.getElementById('sm_share_connect').style.display = "block";
  3183. }
  3184. }
  3185.  
  3186. function sm_share_summary_initiate() {
  3187. sm_element_remove("sm_lower_container", 3);
  3188. setTimeout("sm_element_add(\"sm_share_container\", 3);", 220);
  3189. setTimeout("document.getElementById('sm_share_connect').src = \"https://smmry.com/sm_share_pass/http://money.cnn.com/2018/04/01/news/sports-betting-supreme-court-new-jersey/index.html\"", 320);
  3190. }
  3191.  
  3192. function sm_share_summary_remove() {
  3193. sm_element_remove("sm_share_container", 3);
  3194. setTimeout("sm_element_add(\"sm_lower_container\", 3);", 220);
  3195. setTimeout("sm_share_original_reset();", 320);
  3196. setTimeout("document.getElementById('sm_share_check_original').checked = false;", 320);
  3197. setTimeout("document.getElementById('sm_share_connect_load_element').style.display = \"block\";", 320);
  3198. setTimeout("document.getElementById('sm_share_connect').style.display = \"none\";", 320);
  3199. }
  3200.  
  3201. function sm_share_original_reset() {
  3202. var sm_share_connect = document.getElementById('sm_share_connect');
  3203. var sm_share_connect_content = sm_share_connect.contentDocument || sm_share_connect.contentWindow.document;
  3204. sm_share_connect_content.getElementById('sm_share_container_main').style.display = "block";
  3205. sm_share_connect_content.getElementById('sm_share_container_original').style.display = "none";
  3206. }
  3207.  
  3208. function sm_share_original_toggle() {
  3209. var sm_share_connect = document.getElementById('sm_share_connect');
  3210. var sm_share_connect_content = sm_share_connect.contentDocument || sm_share_connect.contentWindow.document;
  3211. if (sm_share_connect_content.getElementById('sm_share_container_main').style.display != "none") {
  3212. sm_share_connect_content.getElementById('sm_share_container_main').style.display = "none";
  3213. sm_share_connect_content.getElementById('sm_share_container_original').style.display = "block";
  3214. document.getElementById('sm_share_check_original').checked = true;
  3215. } else {
  3216. sm_share_connect_content.getElementById('sm_share_container_main').style.display = "block";
  3217. sm_share_connect_content.getElementById('sm_share_container_original').style.display = "none";
  3218. document.getElementById('sm_share_check_original').checked = false;
  3219. }
  3220. }
  3221.  
  3222. function sm_settings_process() {
  3223. if (document.getElementById('sm_primary_interface').style.display == "none") {
  3224. var sm_postion_top = sm_object_position_top(document.getElementById('sm_settings_button_secondary'));
  3225. document.getElementById("sm_settings_float").style.marginLeft = "-350px";
  3226. } else {
  3227. var sm_postion_top = sm_object_position_top(document.getElementById('sm_settings_button_primary'));
  3228. document.getElementById("sm_settings_float").style.marginLeft = "-208px";
  3229. }
  3230. document.getElementById("sm_settings_float").style.left = "-220px";
  3231. document.getElementById("sm_settings_float").style.display = "block";
  3232. var sm_settings_height = document.getElementById("sm_settings_float").offsetHeight;
  3233. document.getElementById("sm_settings_float").style.display = "none";
  3234. document.getElementById("sm_settings_float").style.left = "50%";
  3235. document.getElementById("sm_settings_float").style.top = (sm_postion_top - sm_settings_height + 28) + "px";
  3236. if (document.getElementById('sm_primary_interface').style.display == "none") {
  3237. sm_element_remove("sm_settings_button_secondary", 2);
  3238. } else {
  3239. sm_element_remove("sm_settings_button_primary", 2);
  3240. }
  3241. sm_element_add("sm_settings_float", 2);
  3242. }
  3243.  
  3244. function sm_settings_remove() {
  3245. sm_element_remove("sm_settings_float", 2);
  3246. if (document.getElementById('sm_primary_interface').style.display == "none") {
  3247. sm_element_add("sm_settings_button_secondary", 2);
  3248. } else {
  3249. sm_element_add("sm_settings_button_primary", 2);
  3250. }
  3251. }
  3252.  
  3253. function sm_settings_populate_primary() {
  3254. if (document.getElementById('sm_primary_interface').style.display != "none" && typeof window.SM_USER_SETTINGS_SAVE != "undefined") {
  3255. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_QUESTION_AVOID/) != -1) {
  3256. document.getElementById('sm_check_question_avoid_visual').checked = true;
  3257. } else {
  3258. document.getElementById('sm_check_question_avoid_visual').checked = false;
  3259. }
  3260. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_EXCLAMATION_AVOID/) != -1) {
  3261. document.getElementById('sm_check_exclamation_avoid_visual').checked = true;
  3262. } else {
  3263. document.getElementById('sm_check_exclamation_avoid_visual').checked = false;
  3264. }
  3265. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_QUOTE_AVOID/) != -1) {
  3266. document.getElementById('sm_check_quote_avoid_visual').checked = true;
  3267. } else {
  3268. document.getElementById('sm_check_quote_avoid_visual').checked = false;
  3269. }
  3270. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_HEAT_MAP/) != -1) {
  3271. document.getElementById('sm_check_heat_map_visual').checked = true;
  3272. } else {
  3273. document.getElementById('sm_check_heat_map_visual').checked = false;
  3274. }
  3275. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_QUICK_TRANSITIONS/) != -1) {
  3276. document.getElementById('sm_check_quick_transitions_visual').checked = true;
  3277. } else {
  3278. document.getElementById('sm_check_quick_transitions_visual').checked = false;
  3279. }
  3280. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_SPECIFY_TOPIC/) != -1) {
  3281. document.getElementById('sm_check_specify_topic_visual').checked = true;
  3282. } else {
  3283. document.getElementById('sm_check_specify_topic_visual').checked = false;
  3284. }
  3285. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_STRICT_SCAN/) != -1) {
  3286. document.getElementById('sm_flash_strict_check').checked = true;
  3287. } else {
  3288. document.getElementById('sm_flash_strict_check').checked = false;
  3289. }
  3290. }
  3291. }
  3292.  
  3293. function sm_settings_save_fail() {
  3294. document.getElementById('sm_check_save_settings_visual').checked = false;
  3295. }
  3296.  
  3297. function sm_quick_transitions_update() {
  3298. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  3299. document.getElementById('sm_check_quick_transitions_visual').checked = true;
  3300. sm_http_connect("https://smmry.com/sm_quick_transitions.php?sm_quick_transitions_state=1");
  3301. } else {
  3302. document.getElementById('sm_check_quick_transitions_visual').checked = false;
  3303. sm_http_connect("https://smmry.com/sm_quick_transitions.php?sm_quick_transitions_state=0");
  3304. }
  3305. }
  3306.  
  3307. function sm_quick_transitions_toggle() {
  3308. if (window.SM_QUICK_TRANSITIONS_STATE == true) {
  3309. window.SM_QUICK_TRANSITIONS_STATE = false;
  3310. } else {
  3311. window.SM_QUICK_TRANSITIONS_STATE = true;
  3312. }
  3313. sm_quick_transitions_update();
  3314. sm_resummarize_process(1);
  3315. }
  3316.  
  3317. function sm_specify_topic_update() {
  3318. if (window.SM_SPECIFY_TOPIC_STATE == 0) {
  3319. document.getElementById('sm_check_specify_topic_visual').checked = false;
  3320. sm_http_connect("https://smmry.com/sm_specify_topic.php?sm_specify_topic_state=0");
  3321. } else if (window.SM_SPECIFY_TOPIC_STATE == 1) {
  3322. document.getElementById('sm_check_specify_topic_visual').checked = true;
  3323. sm_http_connect("https://smmry.com/sm_specify_topic.php?sm_specify_topic_state=1");
  3324. } else if (window.SM_SPECIFY_TOPIC_STATE == 2) {
  3325. document.getElementById('sm_check_specify_topic_visual').indeterminate = true;
  3326. sm_http_connect("https://smmry.com/sm_specify_topic.php?sm_specify_topic_state=0");
  3327. }
  3328. }
  3329.  
  3330. function sm_specify_topic_indeterminate() {
  3331. if (window.SM_SPECIFY_TOPIC_STATE != 0 && window.SM_SPECIFY_TOPIC_STATE != 1) {
  3332. return false;
  3333. }
  3334. if (window.SM_SPECIFY_TOPIC_STATE == 0) {
  3335. sm_specify_topic_add();
  3336. }
  3337. window.SM_SPECIFY_TOPIC_STATE = 2;
  3338. sm_specify_topic_update();
  3339. }
  3340.  
  3341. function sm_specify_topic_add() {
  3342. if (window.SM_SPECIFY_TOPIC_BLOCK == true) {
  3343. return false;
  3344. }
  3345. window.SM_SPECIFY_TOPIC_BLOCK = true;
  3346. sm_slide_a("sm_container_secondary", -24, 0, 1, 8, 3, 1);
  3347. sm_slide_b("sm_lower_main_container", parseFloat(document.getElementById("sm_lower_main_container").style.top), parseFloat(document.getElementById("sm_lower_main_container").style.top) + 24, 1, 8, 3, 1);
  3348. sm_slide_e("sm_footer_container", parseFloat(document.getElementById("sm_footer_container").style.top), parseFloat(document.getElementById("sm_footer_container").style.top) + 24, 1, 8, 3, 1);
  3349. setTimeout("document.getElementById(\"sm_flashbar_container\").style.zIndex = \"10\"", 200);
  3350. setTimeout("window.SM_SPECIFY_TOPIC_BLOCK = false;", 210);
  3351. }
  3352.  
  3353. function sm_specify_topic_remove() {
  3354. if (window.SM_SPECIFY_TOPIC_BLOCK == true) {
  3355. return false;
  3356. }
  3357. window.SM_SPECIFY_TOPIC_BLOCK = true;
  3358. document.getElementById("sm_flashbar_container").style.zIndex = "-10";
  3359. sm_slide_a("sm_container_secondary", 0, -24, -1, 8, 3, 1);
  3360. sm_slide_b("sm_lower_main_container", parseFloat(document.getElementById("sm_lower_main_container").style.top), parseFloat(document.getElementById("sm_lower_main_container").style.top) - 24, -1, 8, 3, 1);
  3361. sm_slide_e("sm_footer_container", parseFloat(document.getElementById("sm_footer_container").style.top), parseFloat(document.getElementById("sm_footer_container").style.top) - 24, -1, 8, 3, 1);
  3362. setTimeout("window.SM_SPECIFY_TOPIC_BLOCK = false;", 210);
  3363. }
  3364.  
  3365. function sm_specify_topic_toggle() {
  3366. if (window.SM_SPECIFY_TOPIC_BLOCK == true) {
  3367. sm_specify_topic_update();
  3368. return false;
  3369. }
  3370. if (window.SM_SPECIFY_TOPIC_STATE == 2) {
  3371. window.SM_SPECIFY_TOPIC_STATE = 1;
  3372. } else if (window.SM_SPECIFY_TOPIC_STATE == 0) {
  3373. window.SM_SPECIFY_TOPIC_STATE = 1;
  3374. sm_specify_topic_add();
  3375. sm_resummarize_process(1);
  3376. } else {
  3377. window.SM_SPECIFY_TOPIC_STATE = 0;
  3378. sm_specify_topic_remove();
  3379. sm_flash_clear();
  3380. }
  3381. sm_specify_topic_update();
  3382. }
  3383.  
  3384. function sm_summarize() {
  3385. var sm_current_input = document.getElementById("sm_input").value;
  3386. var sm_interlude_original = sm_current_input.search(/SMMRY summarizes text to save you time.\n\nPaste a/);
  3387. var sm_current_input = document.getElementById("sm_force_url").value;
  3388. var sm_interlude_url = sm_current_input.search(/Or paste a URL here./);
  3389. if (sm_interlude_original != -1 && sm_interlude_url != -1 && document.getElementById('sm_force_upload_file').value == "sm_null") {
  3390. sm_errorbar_message("YOU MUST FIRST INPUT SOMETHING", "primary");
  3391. } else {
  3392. document.sm_container_primary.submit();
  3393. }
  3394. }
  3395.  
  3396. function sm_referral_run() {
  3397. var sm_hash = window.location.hash;
  3398. var sm_referral_key;
  3399. if (sm_hash.search("&SM_REFERRAL=") != -1) {
  3400. var sm_hash_split = sm_hash.split("&SM_REFERRAL=");
  3401. sm_referral_key = sm_hash_split[1].substr(0, 6);
  3402. sm_http_connect("https://smmry.com/sm_referral_receive.php?sm_referral_key=" + sm_referral_key);
  3403. window.location.hash = sm_hash.replace("&SM_REFERRAL=" + sm_referral_key, "");
  3404. }
  3405. }
  3406.  
  3407. function sm_initial() {
  3408. sm_referral_run();
  3409. sm_common_script_initial();
  3410. sm_user_run();
  3411. sm_user_array_populate();
  3412. sm_settings_populate_primary();
  3413. window.SM_SIGNATURE = "smmry.com";
  3414. window.SM_INPUT_OUT = false;
  3415. window.SM_FORCE_URL_OUT = false;
  3416. window.SM_MAX_SENTENCE = "MAX IS 40";
  3417. window.SM_MIN_SENTENCE = "MIN IS 1";
  3418. window.SM_LOAD_SHADE_CONTINUE = false;
  3419. window.SM_LOAD_MAIN = false;
  3420. window.SM_LOAD_HTTP = false;
  3421. window.SM_LOAD_HTTP_SUB = false;
  3422. window.SM_LOAD_SIDE_STATE = false;
  3423. window.SM_RESUMMARIZE_COUNT_TIME = 0;
  3424. window.SM_RESUMMARIZE_REDUCTION_TIME = 0;
  3425. window.SM_RESUMMARIZE_CHARACTER_TIME = 0;
  3426. window.SM_RESUMMARIZE_PROCESS_TIME = 0;
  3427. window.SM_PARAMETER_EXTRA_COMPOSITE = null;
  3428. window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE = null;
  3429. window.SM_KEYWORD_ARRAY = new Array();
  3430. window.SM_FLASH_CURRENT_ARRAY = new Object();
  3431. window.SM_FLASH_RANK_ARRAY = new Array();
  3432. window.SM_FLASH_GROUP_ARRAY = new Object();
  3433. window.SM_FLASH_SHORT_ARRAY = new Object();
  3434. window.SM_FLASH_REVERSE_ARRAY = new Object();
  3435. window.SM_FLASH_COLOUR_ARRAY = new Object();
  3436. window.SM_FLASH_PROCESS_BLOCK = false;
  3437. window.SM_SPECIFY_TOPIC_STATE = 0;
  3438. window.SM_SPECIFY_TOPIC_BLOCK = false;
  3439. window.SM_ERRORBAR_REMOVE_BLOCK_PRIMARY = false;
  3440. window.SM_SETTINGS_ADVANCED_STATE = false;
  3441. window.SM_SETTINGS_SAVE_STATE = false;
  3442. window.SM_REDUCTION_REQUEST = false;
  3443. window.SM_CHARACTER_REQUEST = false;
  3444. window.SM_REDUCTION_FOCUS = false;
  3445. window.SM_CHARACTER_FOCUS = false;
  3446. window.SM_COUNT_FOCUS = false;
  3447. window.SM_QUICK_TRANSITIONS_STATE = false;
  3448. window.SM_POST_USER_ID = false;
  3449. window.SM_POST_ARRAY = false;
  3450. window.SM_POST_OWN = false;
  3451. window.SM_POST_PART = true;
  3452. window.SM_VIEW_FIXED = false;
  3453. sm_force_url_out();
  3454. sm_http_protocol(1);
  3455. }
  3456.  
  3457. window.onclick = function() {
  3458. sm_flashbar_global();
  3459. }
  3460. window.onload = function() {
  3461. sm_initial();
  3462. sm_flashbar_initial();
  3463. }
  3464. </script>
  3465. <div align="center" style="position:relative;top:20px"><a href="https://smmry.com" style="border-style:none;" tabindex="-1"><img src="https://smmry.com/sm_images/sm_logo.png" border="0" alt="SMMRY - Summarize Everything" /></a>
  3466. <noscript>
  3467. <div style="position:relative;top:10px;left:0px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:17px;font-weight:bold;background-color:#EEFA11;width:600px;">PLEASE ENABLE JAVASCRIPT FOR THIS SITE TO WORK</div>
  3468. </noscript>
  3469. </div>
  3470. <div id="sm_primary_interface" align="center" style="display:none;position:relative;top:35px">
  3471. <form name="sm_container_primary" method="post" action="https://smmry.com/sm_post_process.php">
  3472. <div align="center" style="position:relative;top:-8px;">
  3473. <div align="center" id="sm_errorbar_primary" style="display:none;width:100%left:0px;" onmouseover="this.style.cursor = 'pointer'" onclick="sm_errorbar_clear('primary');"></div>
  3474. </div>
  3475. <div align="center" style="position:relative;top:-8px;">
  3476. <div id="sm_registerbar_primary" style="display:none;left:0px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:17px;font-weight:bold;background-color:#ead9ff;width:402px;height:62px;overflow:visible;padding:4px;"></div>
  3477. </div>
  3478. <div style="position:relative;height:0px;">
  3479. <div id="sm_count_error_primary" style="display:none;position:relative; top:-3px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; border:4px solid #AB0000; background-color:#E80000; left:-265px; width:100px; height:18px;"></div>
  3480. </div><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;">Summarize my text in <input id="sm_count_primary" name="sm_count_primary" style="font-family:Verdana, Arial, Helvetica, sans-serif;width:20px;text-align: center;" onClick="sm_singular_method_check();sm_select_count(this);" onKeyPress="return numbersonly(event, false);" onKeyUp="sm_singular_method_check();" type="text" autocomplete="off" maxlength="2" value="7" /> sentences.</span>
  3481. <br />
  3482. <textarea name="sm_input" id="sm_input" spellcheck="false" class="sm_input_alone" onClick="sm_input_selected();" onKeyUp="sm_input_selected();" onpaste="sm_input_selected();" onSelect="sm_input_selected();" onFocus="sm_input_selected();" onBlur="sm_input_alone();">SMMRY summarizes text to save you time. Paste an article, text or essay in this box and hit summarize; we'll return a shortened copy for you to read. You can also summarize PDF and TXT documents by uploading a file or summarize online articles and webpages by pasting the URL below...</textarea><span style="position:relative;top:5px;"><div style="position:relative;height:0px;"><input id="sm_input_clear" onmouseover="this.style.cursor = 'pointer'" style="display:none;position:relative;top:-250px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; background-color:#f2ec43; border-color:#bfba35; right:0px; width:140px; height:28px; z-index:20;" value="CLEAR" type="button" onClick="sm_input_clear_execute()" /></div><div style="position:relative;height:0px;"><input id="sm_force_url_clear" onmouseover="this.style.cursor = 'pointer'" style="display:none;position:relative;top:5px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; background-color:#f2ec43; border-color:#bfba35; right:0px; width:140px; height:28px; z-index:20;color: rgb(33, 33, 33);" value="CLEAR" type="button" onClick="sm_force_url_clear_execute()" /></div><div style="position:relative;height:0px;"><input id="sm_force_url_follow" onmouseover="this.style.cursor = 'pointer'" style="display:none;position:relative;top:5px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; background-color:#1C7BFF; border-color:#1968d6; left:0px; width:140px; height:28px; z-index:20;color:#FFF" value="GO TO URL" type="button" onClick="sm_force_url_follow_execute();" /></div><div style="position:relative;width:411px;height:38px;top:2px;left:0;margin:0;padding:0;"><div id="sm_upload_instance" style="position:absolute;left:0;width:144px;height:27px;margin:0;padding:0;"><input name="sm_force_upload" id="sm_force_upload" type="text" style="position:relative;left:1px;" class="sm_force_upload_alone" value="Upload a file," tabindex="-1" /></div><div style="position:absolute;right:0;"><input name="sm_force_url" id="sm_force_url" type="text" class="sm_force_url_selected" value="http://money.cnn.com/2018/04/01/news/sports-betting-supreme-court-new-jersey/index.html" spellcheck="false" onClick="sm_force_url_selected();" onKeyUp="sm_force_url_selected();" onSelect="sm_force_url_selected();" onFocus="sm_force_url_selected();" onBlur="sm_force_url_alone();" /></div></div></span>
  3483. <div align="center" style="position:relative;top:10px;width:412px;height:45px;z-index:40;">
  3484. <div style="position:absolute;top:0;left:0;">
  3485. <input id="sm_settings_button_primary" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; background-color:#f2ec43; border-color:#bfba35; width:160px; height:28px; top:20px; color:rgb(33, 33, 33);" onmouseover="this.style.cursor = 'pointer'" value="SETTINGS" type="button" onClick="sm_settings_process()" />
  3486. </div>
  3487. <div style="position:absolute;top:0;right:0;">
  3488. <input name="sm_force_upload_file" id="sm_force_upload_file" type="hidden" value="sm_null" />
  3489. <input name="sm_check_question_avoid" id="sm_check_question_avoid" type="hidden" value="off" />
  3490. <input name="sm_check_exclamation_avoid" id="sm_check_exclamation_avoid" type="hidden" value="off" />
  3491. <input name="sm_check_quote_avoid" id="sm_check_quote_avoid" type="hidden" value="off" />
  3492. <input name="sm_check_heat_map" id="sm_check_heat_map" type="hidden" value="off" />
  3493. <input id="sm_submit" name="sm_submit" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:20px; font-weight:bold; background-color:#c141c1; border-color:#a538a5; width:170px; height:40px; color:#fff; top:20px;" onmouseover="this.style.cursor = 'pointer'" onclick="sm_summarize()" value="SUMMARIZE" type="button" />
  3494. </div>
  3495. </div>
  3496. </form>
  3497. </div>
  3498. <div align="center" style="position:relative;top:25px;">
  3499. <div id="sm_errorbar_secondary" style="display:none;width:100%;" onmouseover="this.style.cursor = 'pointer'" onclick="sm_errorbar_clear('secondary');"></div>
  3500. </div>
  3501. <div align="center" style="position:relative;top:25px;">
  3502. <div id="sm_registerbar_secondary" style="display:none;left:0px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:17px;font-weight:bold;background-color:#ead9ff;width:450px;height:62px;overflow:visible;padding:4px;"></div>
  3503. </div>
  3504. <div align="center" style="position:relative;font-family:Verdana, Arial, Helvetica, sans-serif;top:28px;">
  3505. <div style="position:relative;height:0px;">
  3506. <div id="sm_count_error_secondary" style="display:none;position:relative; top:-3px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; border:4px solid #AB0000; background-color:#E80000; left:-405px; width:100px; height:18px;"></div>
  3507. </div>
  3508. <form name="sm_container_count_secondary" method="post">
  3509. <div id="sm_secondary_upper_bar" style="display:block;position:relative;top:50px;font-size:16px;z-index:-10;">This is a
  3510. <input id="sm_count_secondary" name="sm_count_secondary" style="font-family:Verdana, Arial, Helvetica, sans-serif; width:20px; text-align:center;" autocomplete="off" maxlength="2" onClick="sm_select_count(this);" onKeyPress="return sm_count_process(event);" onKeyUp="sm_resummarize_count(0);" onfocus="window.SM_COUNT_FOCUS = true;" onblur="window.SM_COUNT_FOCUS = false;" type="text" value="7" tabindex="-1" /> sentence summary of <a href="http://money.cnn.com/2018/04/01/news/sports-betting-supreme-court-new-jersey/index.html" tabindex="-1" target="_blank">http://money.cnn.com/2018/04/01/news/spor...</a></div>
  3511. <input id="sm_flashbar_key_input" type="text" onkeydown="sm_flashbar_key_cycle()" onblur="sm_flashbar_recover()" style="position:fixed;top:0px;left:-100px;width:40px;z-index:0;" tabindex="-1" />
  3512. <div id="sm_flashbar_container" style="display:block;position:relative;width:678px;height:24px;z-index:-10;">
  3513. <div align="left" id="sm_flashbar_main" style="position:absolute;left:-3px;width:552px;height:19px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;font-color:#666;border:solid;border-width:2px;border-color:#666;overflow:visible;" onmouseout="sm_flashbar_mouseout()" onmouseover="sm_flashbar_mouseover()"></div>
  3514. <div style="position:absolute;right:0;">
  3515. <input id="sm_flash_strict_check" type="checkbox" onchange="sm_resummarize_process(0)" tabindex="-1" /><span style="position:relative;left:3px;">Strict&nbsp;Scan</span><span id="sm_tip_strict_scan" style="position:relative;left:3px;vertical-align:super;font-size:10px;color:#595856;" onmouseover="this.style.cursor = 'pointer';sm_tip_add(this);" onmouseout="sm_tip_remove(this);">&nbsp;[?]</span></div>
  3516. </div>
  3517. </form>
  3518. </div>
  3519. <div align="center" id="sm_outer_debug" style="display:none;position:relative;top:34px;">
  3520. <div align="left" id="sm_container_debug" style="display:none;width:670px;background-color:#ED1A4F;padding:10px;"></div>
  3521. <br />
  3522. <br />
  3523. </div>
  3524. <div id="sm_secondary_interface" align="center" style="display:block;position:relative;top:28px;height:420px;">
  3525. <form name="sm_container_secondary" method="post">
  3526. <div id="sm_container_secondary" style="display:block;position:relative;top:-24px;width:690px;height:420px;background-color:#EAD9FF;">
  3527. <div align="right" style="position:relative;top:0;right:0;">
  3528. <div style="height:22px;width:10px;"></div>
  3529. </div>
  3530. <div style="position:relative;"><img id="sm_load_shade" src="https://smmry.com/sm_images/sm_load_shade.png" style="display:none;position:relative;top:0px;z-index:20;" /></div>
  3531. <div id="sm_secondary_inner_interface" style="display:none;position:relative;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:16px;height:398px;overflow:hidden;">
  3532. <div id="sm_title_container" align="left" style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:18px;font-weight:bold;text-transform:capitalize;overflow:auto;width:652px;padding-left:10px;padding-right:10px;padding-top:4px;padding-bottom:10px;"></div>
  3533. <div align="left" id="sm_container_output" style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;overflow:hidden;width:650px;padding:10px;"></div>
  3534. </div>
  3535. <div id="sm_secondary_text_style" align="left" style="display:none;position:relative;height:20px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px;overflow:hidden;width:670px;background-color:#cebee2;padding:10px;line-height:20px;">
  3536. <div style="position:absolute;left:10px;width:350px;"><span style="position:relative;top:-1px;font-weight:bold;">Reduced By:</span>&nbsp;
  3537. <input id="sm_reduction_main" type="text" maxlength="3" style="width:22px;height:12px;background-color:#cebee2;border-color:#b7a3d1;font-size:12px;padding:2px;" value="56" autocomplete="off" onclick="sm_select_count(this);" onKeyPress="return sm_count_process(event);" onKeyUp="sm_resummarize_reduction(0);" onfocus="window.SM_REDUCTION_FOCUS = true;" onblur="window.SM_REDUCTION_FOCUS = false;" />%&nbsp;&nbsp;<span style="position:relative;top:-1px;font-weight:bold;">Characters:</span>&nbsp;
  3538. <input id="sm_character_main" type="text" maxlength="5" style="width:35px;height:12px;background-color:#cebee2;border-color:#b7a3d1;font-size:12px;padding:2px;" value="56" autocomplete="off" onclick="sm_select_count(this);" onKeyPress="return sm_count_process(event);" onKeyUp="sm_resummarize_character(0);" onfocus="window.SM_CHARACTER_FOCUS = true;" onblur="window.SM_CHARACTER_FOCUS = false;" />
  3539. </div>
  3540. </div>
  3541. </div>
  3542. </form>
  3543. <br />
  3544. </div>
  3545. <div id="sm_lower_main_container" align="center" style="position:relative;top:-12px;height:20px;">
  3546. <div id="sm_lower_container" style="display:none;position:relative;top:35px;width:685px;z-index:-10;">
  3547. <div style="position:absolute;top:0;left:0;">
  3548. <input id="sm_settings_button_secondary" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold;background-color:#f2ec43; border-color:#bfba35; width:160px; height:28px; top:20px;" onmouseover="this.style.cursor = 'pointer'" value="SETTINGS" type="button" onClick="sm_settings_process()" />
  3549. </div>
  3550. <div style="position:absolute;top:0;right:0;">
  3551. <input id="sm_share_summary" style="display:none;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; background-color:#c141c1;border-color:#a538a5;width:165px;height:28px;top:20px; color:#fff;" onmouseover="this.style.cursor = 'pointer'" value="SHARE SUMMARY" type="button" onClick="sm_share_summary_initiate()" />&nbsp;&nbsp;
  3552. <input id="sm_new_summary" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; background-color:#c141c1;border-color:#a538a5;width:140px;height:28px;top:20px;color:#fff;" onmouseover="this.style.cursor = 'pointer'" value="NEW SUMMARY" type="button" onClick="window.location = 'https://smmry.com'" />
  3553. </div>
  3554. </div>
  3555. <div id="sm_share_container" style="display:none;font-family:Verdana, Arial, Helvetica, sans-serif;position:relative;top:0px;left:0px;z-index:10;">
  3556. <div style="position:relative;width:690px;">
  3557. <div style="position:absolute;left:0;">
  3558. <div align="center" id="sm_share_connect_load_element" style="position:relative;width:440px;top:4px;"><img src="sm_images/sm_load_twirl.gif" /></div>
  3559. <iframe id="sm_share_connect" scrolling="no" frameborder="0" onload="sm_share_connect_load();" style="display:none;position:relative;width:440px;height:28px;"></iframe>
  3560. </div>
  3561. <div style="position:absolute;right:0;">
  3562. <input id="sm_share_clear" onmouseover="this.style.cursor = 'pointer'" style="position:relative; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; background-color:#f2ec43; border-color:#bfba35; right:0px; width:75px; height:28px; z-index:20;" value="CLOSE" type="button" onClick="sm_share_summary_remove();" />
  3563. </div>
  3564. </div>
  3565. </div>
  3566. <div id="sm_rate_container" style="display:none;position:relative;top:0px;left:-4px;z-index:10;">&nbsp;&nbsp;<span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;">RELEVANCE</span>&nbsp;
  3567. <input id="sm_informativeness_score" type="text" maxlength="1" style="width:10px;outline-style:solid;outline-width:0px;outline-color:red;" onClick="sm_rate_summary_clear(this);sm_select_count(this);" onKeyPress="return sm_count_process(event);" onKeyUp="sm_rate_summary_clear(this);" onmouseover="sm_rate_summary_info_add('sm_informativeness_score', this)" onmouseout="sm_rate_summary_info_remove()" /><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;">&nbsp;/5</span>&nbsp;&nbsp;<span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;">EFFICIENCY</span>&nbsp;
  3568. <input id="sm_pithiness_score" type="text" maxlength="1" style="width:10px;outline-style:solid;outline-width:0px;outline-color:red;" onClick="sm_rate_summary_clear(this);sm_select_count(this);" onKeyPress="return sm_count_process(event);" onKeyUp="sm_rate_summary_clear(this);" onmouseover="sm_rate_summary_info_add('sm_pithiness_score', this)" onmouseout="sm_rate_summary_info_remove()" /><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;">&nbsp;/5</span>&nbsp;&nbsp;<span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;">CLARITY</span>&nbsp;
  3569. <input id="sm_clarity_score" type="text" maxlength="1" style="width:10px;outline-style:solid;outline-width:0px;outline-color:red;" onClick="sm_rate_summary_clear(this);sm_select_count(this);" onKeyPress="return sm_count_process(event);" onKeyUp="sm_rate_summary_clear(this);" onmouseover="sm_rate_summary_info_add('sm_clarity_score', this)" onmouseout="sm_rate_summary_info_remove()" /><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;">&nbsp;/5</span>&nbsp;&nbsp;<span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;">ERROR(S)</span>
  3570. <input id="sm_error_score" type="checkbox" onmouseover="sm_rate_summary_info_add('sm_error_score', this)" onmouseout="sm_rate_summary_info_remove()" />&nbsp;&nbsp;
  3571. <input id="sm_rate_clear" onmouseover="this.style.cursor = 'pointer'" style="position:relative;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;background-color:#f2ec43;border-color:#bfba35;right:0px;width:75px;height:28px;z-index:20;color:rgb(33, 33, 33);" value="CANCEL" type="button" onClick="sm_recovery_remove('sm_rate_summary_remove()');sm_rate_summary_remove();" />&nbsp;
  3572. <input id="sm_rate_submit" onmouseover="this.style.cursor = 'pointer'" style="position:relative;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; background-color:#1C7BFF; border-color:#1968d6;left:0px;width:60px;height:28px;z-index:20;color:#FFF;" value="RATE" type="button" onClick="sm_recovery_remove('sm_rate_summary_remove()');sm_rate_summary_process();" />
  3573. </div>
  3574. <div id="sm_feedback_container" style="display:none;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:18px;font-weight:bold;">Thank you for your feedback.</div>
  3575. </div>
  3576. <div align="left" id="sm_settings_float" style="display:none;position:absolute;left:50%;margin-left:-350px;top:0px;z-index:1000;">
  3577. <div style="position:relative;top:-5px;width:200px;background-color:#f2ec43;border-style:solid;border-width:2px;border-color:#bfba35;padding:5px;">
  3578. <div align="center" style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;font-weight:bold;">SETTINGS</div>
  3579. <input id="sm_check_question_avoid_visual" name="sm_check_question_avoid_visual" type="checkbox" onclick="sm_resummarize_process(0)" /><span style="position:relative;left:3px;">Avoid Questions</span><span id="sm_tip_question_avoid" style="position:relative;left:3px;vertical-align:super;font-size:10px;color:#595856;" onmouseover="this.style.cursor = 'pointer';sm_tip_add(this);" onmouseout="sm_tip_remove(this);">&nbsp;[?]</span>
  3580. <br />
  3581. <input id="sm_check_exclamation_avoid_visual" name="sm_check_exclamation_avoid_visual" type="checkbox" onClick="sm_resummarize_process(0)" /><span style="position:relative;left:3px;">Avoid Exclamations</span><span id="sm_tip_exclamation_avoid" style="position:relative;left:3px;vertical-align:super;font-size:10px;color:#595856;" onmouseover="this.style.cursor = 'pointer';sm_tip_add(this);" onmouseout="sm_tip_remove(this);">&nbsp;[?]</span>
  3582. <br />
  3583. <input id="sm_check_quote_avoid_visual" name="sm_check_quote_avoid_visual" type="checkbox" onClick="sm_resummarize_process(0)" /><span style="position:relative;left:3px;">Avoid Quotations</span><span id="sm_tip_quotation_avoid" style="position:relative;left:3px;vertical-align:super;font-size:10px;color:#595856;" onmouseover="this.style.cursor = 'pointer';sm_tip_add(this);" onmouseout="sm_tip_remove(this);">&nbsp;[?]</span>
  3584. <br />
  3585. <input id="sm_check_heat_map_visual" name="sm_check_heat_map_visual" type="checkbox" onclick="sm_resummarize_process(0)" /><span style="position:relative;left:3px;">Heat Map</span><span id="sm_tip_heat_map" style="position:relative;left:3px;vertical-align:super;font-size:10px;color:#595856;" onmouseover="this.style.cursor = 'pointer';sm_tip_add(this);" onmouseout="sm_tip_remove(this);">&nbsp;[?]</span>
  3586. <br />
  3587. <input id="sm_check_quick_transitions_visual" name="sm_check_quick_transitions_visual" type="checkbox" onclick="sm_quick_transitions_toggle()" /><span style="position:relative;left:3px;">Quick Transitions</span><span id="sm_tip_quick_transitions" style="position:relative;left:3px;vertical-align:super;font-size:10px;color:#595856;" onmouseover="this.style.cursor = 'pointer';sm_tip_add(this);" onmouseout="sm_tip_remove(this);">&nbsp;[?]</span>
  3588. <br />
  3589. <input id="sm_check_specify_topic_visual" name="sm_check_specify_topic_visual" type="checkbox" onclick="sm_specify_topic_toggle()" /><span style="position:relative;left:3px;">Specify Topic</span><span id="sm_tip_specify_topic" style="position:relative;left:3px;vertical-align:super;font-size:10px;color:#595856;" onmouseover="this.style.cursor = 'pointer';sm_tip_add(this);" onmouseout="sm_tip_remove(this);">&nbsp;[?]</span>
  3590. <br />
  3591. <input id="sm_check_save_settings_visual" name="sm_check_save_settings_visual" type="checkbox" onclick="sm_user_validate('sm_resummarize_process(1)', 'sm_settings_save_fail()', false, 1);" /><span style="position:relative;left:3px;">Remember Settings</span><span id="sm_tip_remember_settings" style="vertical-align:super;font-size:10px;color:#595856;" onmouseover="this.style.cursor = 'pointer';sm_tip_add(this);" onmouseout="sm_tip_remove(this);">&nbsp;[?]</span></div>
  3592. <input id="sm_rate_clear" onmouseover="this.style.cursor = 'pointer'" style="position:relative;left:8px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold; background-color:#f2ec43;border-color:#bfba35;width:160px;height:28px;z-index:20;color:rgb(33, 33, 33);" value="CLOSE" type="button" onClick="sm_settings_remove();" />
  3593. </div>
  3594. <div id="sm_rate_summary_info_container" style="display:none;position:absolute;top:0px;font-family:Verdana, Arial, Helvetica, sans-serif;width:300px;background-color:#FFF;border-style:solid;border-width:2px;border-color:#000;padding:5px;"></div>
  3595. <div id="sm_flash_warning_container" style="display:none;position:absolute;top:0px;font-size:16px;font-weight:bold;background-color:#cccc00;border-style:solid;border-width:2px;border-color:#000;padding:5px;z-index:9990;">You cannot select more than 5 keywords</div>
  3596. <div id="sm_flash_info_container" style="display:none;position:absolute;top:0px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;font-weight:bold;background-color:#ead9ff;border-style:solid;border-width:2px;border-color:#000;padding:5px;">Not a significant keyword</div><img id="sm_flashbar_pointer" style="display:none;position:absolute;left:50%;margin-left:-345px;z-index:9000;" src="https://smmry.com/sm_images/sm_flashbar_pointer.png" /><img id="sm_flashbar_pointer_red" style="display:none;position:absolute;left:50%;margin-left:-345px;z-index:9009;" src="https://smmry.com/sm_images/sm_flashbar_pointer_red.png" />
  3597. <div id="sm_flashbar_box_undercast" style="display:none;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;position:absolute;background-color:#666;left:50%;margin-left:-341px;width:552px;border:solid;border-width:2px;border-color:#666;z-index:9000;"></div>
  3598. <div id="sm_flashbar_box" style="display:none;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;position:absolute;left:50%;margin-left:-341px;width:552px;z-index:9900;"></div>
  3599. <div id="sm_tip_container" style="display:none;position:absolute;width:200px;background-color:#ead9ff;border:solid;border-width:2px;border-color:#bdafce;padding:5px;z-index:9990;"></div>
  3600. <div id="sm_loading_notice" style="display:none;position:fixed;bottom:0px;right:0px;background-color:#CF0;padding:5px;font-family:Verdana, Arial, Helvetica, sans-serif;font-weight:bold;font-size:16px;">LOADING...</div>
  3601. <div id="sm_footer_container" align="center" style="position:relative;top:-8px;">
  3602. <div align="center" style="position:relative;top:0px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px;">
  3603. <br /><a class="sm_footer_nav_home" href="https://smmry.com">SUMMARIZE</a>|<a class="sm_footer_nav_main" href="https://smmry.com/about">ABOUT</a>|<a class="sm_footer_nav_main" href="https://smmry.com/api">API</a>|<a class="sm_footer_nav_main" href="https://smmry.com/partner">PARTNER</a>|<a class="sm_footer_nav_main" href="https://smmry.com/bookmark">BOOKMARK WIDGET</a>|<a class="sm_footer_nav_main" href="https://smmry.com/contact">CONTACT</a><span id="sm_footer_user_part" style="display: block;margin-top:10px;"><span class="sm_footer_nav_register" onclick="sm_register_launch();" onmouseover="this.style.cursor = 'pointer'"><b>REGISTER</b></span>|<span class="sm_footer_nav_login" onclick="sm_login_launch();" onmouseover="this.style.cursor = 'pointer'"><b>LOGIN</b></span></span>
  3604. <br /><span href="#" style="font-size:8px;color:#000;text-decoration:none;">&copy; 2018</span> <a style="font-size:8px;color:#000;text-decoration:none;">Smmry.com</a></div>
  3605. <br />
  3606. </div>
  3607. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-57f2616c9c53a3e2"></script>
  3608. </body>
  3609.  
  3610. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement