Advertisement
Guest User

Untitled

a guest
Apr 1st, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 113.90 KB | None | 0 0
  1. >FW 03:20 VPAIDRenderer: onAdVideoMidpoint() AdManager.js:2
  2. >FW 03:20 Context.dispatchEvent adEvent AdManager.js:2
  3.  
  4.  
  5.  
  6. Success!You've been successfully registered and logged in as .You can now access more features.You completed the registration form in seconds.The average is seconds.Please be aware that some features are currently in beta.
  7. Registration is free, quick, and gives you access to more features.
  8.  
  9. Full Name:Username:Valid Email:Password:Password Again:Captcha code:[refresh] I agree to these terms.
  10.  
  11.  
  12.  
  13.  
  14. Enter your login credentials below.Incorrect login credentials.
  15.  
  16. Username:Password:(Forgot?) Remember meSuccess!
  17.  
  18.  
  19.  
  20. 1) SMMRY.COM reserves the right to revoke access to this site at our discretion.2) YOU will not make a clone of SMMRY.COM using the API.3) SMMRY.COM reserves the right to alter these terms without explicit notification.4) YOUR implicit use of this site binds you to these terms.
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. 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...";
  28. window.sm_interlude_force_url = "Or paste a URL here.";
  29. function numbersonly(e, decimal) {
  30. var key;
  31. var keychar;
  32.  
  33. if (window.event) {
  34. key = window.event.keyCode;
  35. }
  36. else if (e) {
  37. key = e.which;
  38. }
  39. else {
  40. return true;
  41. }
  42. keychar = String.fromCharCode(key);
  43.  
  44. if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) ) {
  45. return true;
  46. }
  47. else if ((("0123456789").indexOf(keychar) > -1)) {
  48. return true;
  49. }
  50. else if (decimal && (keychar == ".")) {
  51. return true;
  52. }
  53. else
  54. return false;
  55. }
  56. function sm_count_process(e) {
  57. var key;
  58. if(window.event)
  59. key = window.event.keyCode; //IE
  60. else
  61. key = e.which; //firefox
  62.  
  63. if(key == 13)
  64. return false;
  65. return numbersonly(e, false);
  66. }
  67. document.onkeydown = sm_key_focus;
  68. function sm_key_focus(e) {
  69. var keycode;
  70. if (window.event) keycode = window.event.keyCode;
  71. else if (e) keycode = e.which;
  72. if (window.SM_FLASHBAR_STATUS==true&&window.SM_FLASHBAR_SELECTED==true&&window.SM_FLASHBAR_BUSY==false&&window.SM_FLASH_PROCESS_BLOCK==false) {
  73. if (keycode==8||keycode==37) {
  74. sm_flashbar_character(null);
  75. }
  76. else if (keycode==13||keycode==39) {
  77. sm_flashbar_character(" ");
  78. }
  79. else if (keycode==38) {
  80. sm_flashbar_up();
  81. }
  82. else if (keycode==40) {
  83. sm_flashbar_down();
  84. }
  85. }
  86. 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) {
  87. if (window.SM_FLASHBAR_SELECTED==false) {
  88. sm_flashbar_select();
  89. sm_flashbar_activate();
  90. setTimeout("document.getElementById('sm_flashbar_key_input').focus()", 1);
  91. }
  92. else {
  93. sm_flashbar_unselect();
  94. if (window.SM_FLASHBAR_BUILD=="") {
  95. sm_flashbar_reset();
  96. }
  97. document.getElementById('sm_flashbar_key_input').blur();
  98. }
  99. }
  100. else if (keycode==13&&document.getElementById('sm_login_main_container').style.display=="block") {
  101. sm_login_submit();
  102. }
  103. }
  104.  
  105. function sm_slide_a(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  106. if (window.SM_SLIDE_ELEMENT_A!=null&&window.SM_SLIDE_ELEMENT_A!=sm_target) {
  107. setTimeout("sm_slide_a(\""+sm_target+"\", "+sm_start+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", 300);
  108. }
  109. else {
  110. window.SM_SLIDE_ELEMENT_A = sm_target;
  111. if (sm_vertical==1) {
  112. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  113. document.getElementById(sm_target).style.top = sm_end+"px";
  114. }
  115. else {
  116. document.getElementById(sm_target).style.top = sm_start+"px";
  117. }
  118. }
  119. else {
  120. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  121. document.getElementById(sm_target).style.left = sm_start+"px";
  122. }
  123. else {
  124. document.getElementById(sm_target).style.left = sm_end+"px";
  125. }
  126. }
  127. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  128. sm_slide_reset_a();
  129. }
  130. else if ((sm_direction==1&&sm_start<sm_end)||(sm_direction==-1&&sm_start>sm_end)) {
  131. setTimeout("sm_slide_a(\""+sm_target+"\", "+(sm_start+(sm_step*sm_direction))+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", sm_speed);
  132. }
  133. else {
  134. setTimeout("sm_slide_reset_a()", 20);
  135. }
  136. }
  137. }
  138.  
  139. function sm_slide_b(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  140. if (window.SM_SLIDE_ELEMENT_B!=null&&window.SM_SLIDE_ELEMENT_B!=sm_target) {
  141. setTimeout("sm_slide_b(\""+sm_target+"\", "+sm_start+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", 300);
  142. }
  143. else {
  144. window.SM_SLIDE_ELEMENT_B = sm_target;
  145. if (sm_vertical==1) {
  146. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  147. document.getElementById(sm_target).style.top = sm_end+"px";
  148. }
  149. else {
  150. document.getElementById(sm_target).style.top = sm_start+"px";
  151. }
  152. }
  153. else {
  154. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  155. document.getElementById(sm_target).style.left = sm_start+"px";
  156. }
  157. else {
  158. document.getElementById(sm_target).style.left = sm_end+"px";
  159. }
  160. }
  161. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  162. sm_slide_reset_b();
  163. }
  164. else if ((sm_direction==1&&sm_start<sm_end)||(sm_direction==-1&&sm_start>sm_end)) {
  165. setTimeout("sm_slide_b(\""+sm_target+"\", "+(sm_start+(sm_step*sm_direction))+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", sm_speed);
  166. }
  167. else {
  168. setTimeout("sm_slide_reset_b()", 20);
  169. }
  170. }
  171. }
  172.  
  173. //reserved for slide bar
  174. function sm_slide_c(sm_target, sm_instance_id, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  175. if (window.SM_LOAD_SHADE_CONTINUE==false) {
  176. return false;
  177. }
  178. if (sm_instance_id==0) {
  179. sm_instance_id = sm_random(1000000, 9999999);
  180. window.SM_SLIDE_C_INSTANCE_ID = sm_instance_id;
  181. sm_slide_reset_c();
  182. }
  183. else if (sm_instance_id!=window.SM_SLIDE_C_INSTANCE_ID) {
  184. return false;
  185. }
  186. if (window.SM_SLIDE_ELEMENT_C!=null&&window.SM_SLIDE_ELEMENT_C!=sm_target) {
  187. setTimeout("sm_slide_c(\""+sm_target+"\", \""+sm_instance_id+"\", "+sm_start+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", 300);
  188. }
  189. else {
  190. window.SM_SLIDE_ELEMENT_C = sm_target;
  191. if (sm_vertical==1) {
  192. document.getElementById(sm_target).style.top = sm_start+"px";
  193. }
  194. else {
  195. document.getElementById(sm_target).style.left = sm_start+"px";
  196. }
  197. if ((sm_direction==1&&sm_start<sm_end)||(sm_direction==-1&&sm_start>sm_end)) {
  198. 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);
  199. }
  200. else {
  201. setTimeout("sm_slide_reset_c()", 20);
  202. }
  203. }
  204. }
  205.  
  206. function sm_slide_d(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  207. if (window.SM_SLIDE_ELEMENT_D!=null&&window.SM_SLIDE_ELEMENT_D!=sm_target) {
  208. setTimeout("sm_slide_d(\""+sm_target+"\", "+sm_start+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", 300);
  209. }
  210. else {
  211. window.SM_SLIDE_ELEMENT_D = sm_target;
  212. if (sm_vertical==1) {
  213. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  214. document.getElementById(sm_target).style.top = sm_end+"px";
  215. }
  216. else {
  217. document.getElementById(sm_target).style.top = sm_start+"px";
  218. }
  219. }
  220. else {
  221. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  222. document.getElementById(sm_target).style.left = sm_start+"px";
  223. }
  224. else {
  225. document.getElementById(sm_target).style.left = sm_end+"px";
  226. }
  227. }
  228. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  229. sm_slide_reset_d();
  230. }
  231. else if ((sm_direction==1&&sm_start<sm_end)||(sm_direction==-1&&sm_start>sm_end)) {
  232. setTimeout("sm_slide_d(\""+sm_target+"\", "+(sm_start+(sm_step*sm_direction))+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", sm_speed);
  233. }
  234. else {
  235. setTimeout("sm_slide_reset_d()", 20);
  236. }
  237. }
  238. }
  239.  
  240. function sm_slide_e(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  241. if (window.SM_SLIDE_ELEMENT_E!=null&&window.SM_SLIDE_ELEMENT_E!=sm_target) {
  242. setTimeout("sm_slide_e(\""+sm_target+"\", "+sm_start+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", 300);
  243. }
  244. else {
  245. window.SM_SLIDE_ELEMENT_E = sm_target;
  246. if (sm_vertical==1) {
  247. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  248. document.getElementById(sm_target).style.top = sm_end+"px";
  249. }
  250. else {
  251. document.getElementById(sm_target).style.top = sm_start+"px";
  252. }
  253. }
  254. else {
  255. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  256. document.getElementById(sm_target).style.left = sm_start+"px";
  257. }
  258. else {
  259. document.getElementById(sm_target).style.left = sm_end+"px";
  260. }
  261. }
  262. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  263. sm_slide_reset_e();
  264. }
  265. else if ((sm_direction==1&&sm_start<sm_end)||(sm_direction==-1&&sm_start>sm_end)) {
  266. setTimeout("sm_slide_e(\""+sm_target+"\", "+(sm_start+(sm_step*sm_direction))+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", sm_speed);
  267. }
  268. else {
  269. setTimeout("sm_slide_reset_e()", 20);
  270. }
  271. }
  272. }
  273.  
  274. function sm_slide_f(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  275. if (window.SM_SLIDE_ELEMENT_F!=null&&window.SM_SLIDE_ELEMENT_F!=sm_target) {
  276. setTimeout("sm_slide_f(\""+sm_target+"\", "+sm_start+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", 300);
  277. }
  278. else {
  279. window.SM_SLIDE_ELEMENT_F = sm_target;
  280. if (sm_vertical==1) {
  281. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  282. document.getElementById(sm_target).style.top = sm_end+"px";
  283. }
  284. else {
  285. document.getElementById(sm_target).style.top = sm_start+"px";
  286. }
  287. }
  288. else {
  289. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  290. document.getElementById(sm_target).style.left = sm_start+"px";
  291. }
  292. else {
  293. document.getElementById(sm_target).style.left = sm_end+"px";
  294. }
  295. }
  296. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  297. sm_slide_reset_f();
  298. }
  299. else if ((sm_direction==1&&sm_start<sm_end)||(sm_direction==-1&&sm_start>sm_end)) {
  300. setTimeout("sm_slide_f(\""+sm_target+"\", "+(sm_start+(sm_step*sm_direction))+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", sm_speed);
  301. }
  302. else {
  303. setTimeout("sm_slide_reset_f()", 20);
  304. }
  305. }
  306. }
  307.  
  308. function sm_slide_g(sm_target, sm_start, sm_end, sm_direction, sm_speed, sm_step, sm_vertical) {
  309. if (window.SM_SLIDE_ELEMENT_G!=null&&window.SM_SLIDE_ELEMENT_G!=sm_target) {
  310. setTimeout("sm_slide_g(\""+sm_target+"\", "+sm_start+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", 300);
  311. }
  312. else {
  313. window.SM_SLIDE_ELEMENT_G = sm_target;
  314. if (sm_vertical==1) {
  315. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  316. document.getElementById(sm_target).style.top = sm_end+"px";
  317. }
  318. else {
  319. document.getElementById(sm_target).style.top = sm_start+"px";
  320. }
  321. }
  322. else {
  323. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  324. document.getElementById(sm_target).style.left = sm_start+"px";
  325. }
  326. else {
  327. document.getElementById(sm_target).style.left = sm_end+"px";
  328. }
  329. }
  330. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  331. sm_slide_reset_g();
  332. }
  333. else if ((sm_direction==1&&sm_start<sm_end)||(sm_direction==-1&&sm_start>sm_end)) {
  334. setTimeout("sm_slide_g(\""+sm_target+"\", "+(sm_start+(sm_step*sm_direction))+", "+sm_end+", "+sm_direction+", "+sm_speed+", "+sm_step+", "+sm_vertical+");", sm_speed);
  335. }
  336. else {
  337. setTimeout("sm_slide_reset_g()", 20);
  338. }
  339. }
  340. }
  341.  
  342. function sm_slide_reset_a() {
  343. window.SM_SLIDE_ELEMENT_A = null;
  344. }
  345.  
  346. function sm_slide_reset_b() {
  347. window.SM_SLIDE_ELEMENT_B = null;
  348. }
  349.  
  350. function sm_slide_reset_c() {
  351. window.SM_SLIDE_ELEMENT_C = null;
  352. }
  353.  
  354. function sm_slide_reset_d() {
  355. window.SM_SLIDE_ELEMENT_D = null;
  356. }
  357.  
  358. function sm_slide_reset_e() {
  359. window.SM_SLIDE_ELEMENT_E = null;
  360. }
  361.  
  362. function sm_slide_reset_f() {
  363. window.SM_SLIDE_ELEMENT_F = null;
  364. }
  365.  
  366. function sm_slide_reset_g() {
  367. window.SM_SLIDE_ELEMENT_G = null;
  368. }
  369.  
  370. function sm_select_count(sm_object) {
  371. sm_object.focus();
  372. sm_object.select();
  373. }
  374.  
  375. function sm_input_alone() {
  376. if (document.getElementById("sm_input").value=="") {
  377. document.getElementById("sm_input").value = window.sm_interlude_original;
  378. document.getElementById("sm_input").setAttribute("class", "sm_input_alone");
  379. if (window.SM_INPUT_OUT==true) {
  380. sm_input_in();
  381. }
  382. }
  383. }
  384. function sm_input_selected() {
  385. if (document.getElementById("sm_input").value==""&&window.SM_INPUT_OUT==true) {
  386. sm_input_in();
  387. return true;
  388. }
  389. var sm_current_input = document.getElementById("sm_input").value;
  390. var sm_interlude_search = sm_current_input.search(/SMMRY summarizes text to save you time.\n\nPaste a/);
  391. if (sm_interlude_search != -1) {
  392. document.getElementById("sm_input").value = "";
  393. document.getElementById("sm_input").setAttribute("class", "sm_input_selected");
  394. }
  395. if (window.SM_INPUT_OUT==false&&document.getElementById("sm_input").value!="") {
  396. sm_input_out();
  397. }
  398. }
  399.  
  400. function sm_force_url_alone() {
  401. if (document.getElementById("sm_force_url").value=="") {
  402. document.getElementById("sm_force_url").value = window.sm_interlude_force_url;
  403. document.getElementById("sm_force_url").setAttribute("class", "sm_force_url_alone");
  404. if (window.SM_FORCE_URL_OUT==true) {
  405. sm_force_url_in();
  406. }
  407. }
  408. }
  409.  
  410. function sm_force_url_selected() {
  411. if (document.getElementById("sm_force_url").value==""&&window.SM_FORCE_URL_OUT==true) {
  412. sm_force_url_in();
  413. return true;
  414. }
  415. var sm_current_input = document.getElementById("sm_force_url").value;
  416. var sm_interlude_search = sm_current_input.search(/Or paste a URL here./);
  417. if (sm_interlude_search != -1) {
  418. document.getElementById("sm_force_url").value = "";
  419. document.getElementById("sm_force_url").setAttribute("class", "sm_force_url_selected");
  420. }
  421. if (window.SM_FORCE_URL_OUT==false&&document.getElementById("sm_force_url").value!="") {
  422. sm_force_url_out();
  423. }
  424. }
  425.  
  426. function sm_resummarize_count(sm_retry) {
  427. if (sm_retry==1&&window.SM_LOAD_HTTP==false) {
  428. if ((sm_microtime(true)-window.SM_RESUMMARIZE_COUNT_TIME)>0.55&&document.getElementById("sm_count_secondary").value!="") {
  429. sm_resummarize_process(0);
  430. }
  431. }
  432. else {
  433. sm_element_remove("sm_errorbar_secondary", 2);
  434. var sm_count_secondary = document.getElementById('sm_count_secondary').value;
  435. if (sm_count_secondary.length>0&&sm_count_secondary>40) {
  436. document.getElementById('sm_count_error_secondary').innerHTML = window.SM_MAX_SENTENCE;
  437. sm_element_add("sm_count_error_secondary", 2);
  438. return false;
  439. }
  440. else {
  441. sm_element_remove("sm_count_error_secondary", 2);
  442. }
  443. if (sm_count_secondary.length>0&&sm_count_secondary<1) {
  444. document.getElementById('sm_count_error_secondary').innerHTML = window.SM_MIN_SENTENCE;
  445. sm_element_add("sm_count_error_secondary", 2);
  446. return false;
  447. }
  448. else {
  449. sm_element_remove("sm_count_error_secondary", 2);
  450. }
  451. window.SM_RESUMMARIZE_COUNT_TIME = sm_microtime(true);
  452. setTimeout("sm_resummarize_count(1)", 600);
  453. }
  454. }
  455.  
  456. function sm_resummarize_reduction(sm_retry) {
  457. if (sm_retry==1&&window.SM_LOAD_HTTP==false) {
  458. if ((sm_microtime(true)-window.SM_RESUMMARIZE_REDUCTION_TIME)>0.55&&document.getElementById("sm_reduction_main").value!="") {
  459. window.SM_REDUCTION_REQUEST = true;
  460. window.SM_CHARACTER_REQUEST = false;
  461. sm_resummarize_process(0);
  462. }
  463. }
  464. else {
  465. window.SM_RESUMMARIZE_REDUCTION_TIME = sm_microtime(true);
  466. setTimeout("sm_resummarize_reduction(1)", 600);
  467. }
  468. }
  469.  
  470. function sm_resummarize_character(sm_retry) {
  471. if (sm_retry==1&&window.SM_LOAD_HTTP==false) {
  472. if ((sm_microtime(true)-window.SM_RESUMMARIZE_CHARACTER_TIME)>0.55&&document.getElementById("sm_character_main").value!="") {
  473. window.SM_CHARACTER_REQUEST = true;
  474. window.SM_REDUCTION_REQUEST = false;
  475. sm_resummarize_process(0);
  476. }
  477. }
  478. else {
  479. window.SM_RESUMMARIZE_CHARACTER_TIME = sm_microtime(true);
  480. setTimeout("sm_resummarize_character(1)", 600);
  481. }
  482. }
  483.  
  484. function sm_resummarize_process(sm_early_exit) {
  485. if (sm_early_exit==0&&(sm_microtime(true)-window.SM_RESUMMARIZE_PROCESS_TIME)<1.2) {
  486. setTimeout("sm_resummarize_process("+sm_early_exit+")", 100);
  487. return false;
  488. }
  489. var sm_hash = window.location.hash;
  490. var sm_length = "&SM_LENGTH="+document.getElementById("sm_count_secondary").value;
  491. var sm_keyword = "";
  492. var sm_keyword_initial = true;
  493. for (sm_key in window.SM_KEYWORD_ARRAY) {
  494. if (sm_keyword_initial==true) {
  495. sm_keyword_initial = false;
  496. var sm_keyword = "&SM_KEYWORD="+sm_key;
  497. }
  498. else {
  499. sm_keyword += "+"+sm_key;
  500. }
  501. }
  502. if (document.getElementById("sm_check_question_avoid_visual").checked==true) {
  503. var sm_question_avoid = "&SM_QUESTION_AVOID";
  504. }
  505. else {
  506. var sm_question_avoid = "";
  507. }
  508. if (document.getElementById("sm_check_exclamation_avoid_visual").checked==true) {
  509. var sm_exclamation_avoid = "&SM_EXCLAMATION_AVOID";
  510. }
  511. else {
  512. var sm_exclamation_avoid = "";
  513. }
  514. if (document.getElementById("sm_check_quote_avoid_visual").checked==true) {
  515. var sm_quote_avoid = "&SM_QUOTE_AVOID";
  516. }
  517. else {
  518. var sm_quote_avoid = "";
  519. }
  520. if (document.getElementById("sm_check_heat_map_visual").checked==true) {
  521. var sm_heat_map = "&SM_HEAT_MAP";
  522. }
  523. else {
  524. var sm_heat_map = "";
  525. sm_heat_map_remove();
  526. }
  527. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  528. var sm_quick_transitions = "&SM_QUICK_TRANSITIONS";
  529. }
  530. else {
  531. var sm_quick_transitions = "";
  532. }
  533. if (window.SM_SPECIFY_TOPIC_STATE==1) {
  534. var sm_specify_topic = "&SM_SPECIFY_TOPIC";
  535. }
  536. else {
  537. var sm_specify_topic = "";
  538. }
  539. if (document.getElementById("sm_flash_strict_check").checked==true) {
  540. var sm_strict_scan = "&SM_STRICT_SCAN";
  541. }
  542. else {
  543. var sm_strict_scan = "";
  544. }
  545. var sm_reduction_main = document.getElementById("sm_reduction_main").value;
  546. var sm_character_main = document.getElementById("sm_character_main").value;
  547. if (sm_hash.search(/&SM_DEBUG/)!=-1) {
  548. var sm_debug = "&SM_DEBUG";
  549. }
  550. else {
  551. var sm_debug = "";
  552. }
  553. if (document.getElementById('sm_primary_interface').style.display!="none") {
  554. if (document.getElementById('sm_check_quote_avoid_visual').checked==true) {
  555. document.getElementById('sm_check_question_avoid').value = "on";
  556. }
  557. else {
  558. document.getElementById('sm_check_question_avoid').value = "off";
  559. }
  560. if (document.getElementById('sm_check_exclamation_avoid_visual').checked==true) {
  561. document.getElementById('sm_check_exclamation_avoid').value = "on";
  562. }
  563. else {
  564. document.getElementById('sm_check_exclamation_avoid').value = "off";
  565. }
  566. if (document.getElementById('sm_check_quote_avoid_visual').checked==true) {
  567. document.getElementById('sm_check_quote_avoid').value = "on";
  568. }
  569. else {
  570. document.getElementById('sm_check_quote_avoid').value = "off";
  571. }
  572. if (document.getElementById('sm_check_heat_map_visual').checked==true) {
  573. document.getElementById('sm_check_heat_map').value = "on";
  574. }
  575. else {
  576. document.getElementById('sm_check_heat_map').value = "off";
  577. }
  578. if (document.getElementById('sm_check_save_settings_visual').checked==true) {
  579. window.SM_SETTINGS_SAVE_STATE = true;
  580. 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";
  581. if (sm_settings_save_composite!=window.SM_USER_SETTINGS_SAVE) {
  582. window.SM_USER_SETTINGS_SAVE = sm_settings_save_composite;
  583. sm_settings_save_composite = sm_settings_save_composite.replace(/&/g, "SM_CHAR_AMP");
  584. sm_http_connect("https://smmry.com/sm_settings_save.php?sm_settings_save_composite="+sm_settings_save_composite);
  585. }
  586. }
  587. else if (window.SM_SETTINGS_SAVE_STATE==true) {
  588. window.SM_SETTINGS_SAVE_STATE = false;
  589. sm_http_connect("https://smmry.com/sm_settings_save.php?sm_settings_save_composite=sm_null");
  590. window.SM_USER_SETTINGS_SAVE = "";
  591. }
  592. return true;
  593. }
  594.  
  595. if (document.getElementById('sm_share_container').style.display!="none") {
  596. sm_share_summary_remove();
  597. }
  598. if (document.getElementById('sm_rate_container').style.display!="none") {
  599. sm_recovery_remove('sm_rate_summary_remove()');
  600. sm_rate_summary_remove();
  601. }
  602. window.SM_RESUMMARIZE_PROCESS_TIME = sm_microtime(true);
  603.  
  604. if (document.getElementById('sm_check_save_settings_visual').checked==true) {
  605. window.SM_SETTINGS_SAVE_STATE = true;
  606. 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";
  607. if (sm_settings_save_composite!=window.SM_USER_SETTINGS_SAVE) {
  608. window.SM_USER_SETTINGS_SAVE = sm_settings_save_composite;
  609. sm_settings_save_composite = sm_settings_save_composite.replace(/&/g, "SM_CHAR_AMP");
  610. sm_http_connect("https://smmry.com/sm_settings_save.php?sm_settings_save_composite="+sm_settings_save_composite);
  611. }
  612. }
  613. else if (window.SM_SETTINGS_SAVE_STATE==true) {
  614. window.SM_SETTINGS_SAVE_STATE = false;
  615. sm_http_connect("https://smmry.com/sm_settings_save.php?sm_settings_save_composite=sm_null");
  616. window.SM_USER_SETTINGS_SAVE = "";
  617. }
  618. if (sm_early_exit==1) {
  619. return false;
  620. }
  621. 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;
  622. 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;
  623. if (sm_parameter_extra_composite_compare==window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE) {
  624. return false;
  625. }
  626. var sm_count = document.getElementById("sm_count_secondary").value;
  627. if (sm_count>40||sm_count<1) {
  628. return false;
  629. }
  630. window.SM_PARAMETER_EXTRA_COMPOSITE = sm_parameter_extra_composite;
  631. window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE = sm_parameter_extra_composite_compare;
  632. window.location.hash = sm_parameter_extra_composite;
  633. if (sm_early_exit==2||document.getElementById('sm_primary_interface').style.display!="none") {
  634. return false;
  635. }
  636. sm_http_protocol(0);
  637. }
  638.  
  639. function sm_expand() {
  640. document.getElementById("sm_container_output").innerHTML = document.getElementById("sm_container_output").innerHTML.replace(/<sm_break>/gi, "<br>");
  641. document.getElementById("sm_container_expanded").style.fontWeight = "bold";
  642. document.getElementById("sm_container_compact").style.fontWeight = "normal";
  643. sm_http_connect("https://smmry.com/sm_view_mode.php?sm_switch=expanded");
  644. }
  645. function sm_compact() {
  646. document.getElementById("sm_container_output").innerHTML = document.getElementById("sm_container_output").innerHTML.replace(/<br>/gi, "<sm_break>");
  647. document.getElementById("sm_container_compact").style.fontWeight = "bold";
  648. document.getElementById("sm_container_expanded").style.fontWeight = "normal";
  649. sm_http_connect("https://smmry.com/sm_view_mode.php?sm_switch=compact");
  650. }
  651.  
  652. function sm_scroll_enable(sm_preserve) {
  653. if (sm_preserve==0) {
  654. window.SM_VIEW_FIXED = true;
  655. document.getElementById("sm_lower_main_container").style.top = (parseFloat(document.getElementById("sm_lower_main_container").style.top)+50)+"px";
  656. document.getElementById("sm_footer_container").style.top = (parseFloat(document.getElementById("sm_footer_container").style.top)+40)+"px";
  657. sm_http_connect("https://smmry.com/sm_view_mode.php?sm_switch=fixed");
  658. }
  659.  
  660. document.getElementById("sm_secondary_inner_interface").style.overflow = "auto";
  661. document.getElementById("sm_secondary_inner_interface").style.height = "398px";
  662. document.getElementById("sm_container_secondary").style.height = "420px";
  663. document.getElementById("sm_secondary_interface").style.height = "420px";
  664. //document.getElementById("sm_scrollbar_enabled").style.fontWeight = "bold";
  665. //document.getElementById("sm_scrollbar_disabled").style.fontWeight = "normal";
  666. }
  667.  
  668. function sm_scroll_disable(sm_preserve) {
  669. if (sm_preserve==0) {
  670. window.SM_VIEW_FIXED = false;
  671. document.getElementById("sm_lower_main_container").style.top = (parseFloat(document.getElementById("sm_lower_main_container").style.top)-50)+"px";
  672. document.getElementById("sm_footer_container").style.top = (parseFloat(document.getElementById("sm_footer_container").style.top)-40)+"px";
  673. sm_http_connect("https://smmry.com/sm_view_mode.php?sm_switch=dynamic");
  674. }
  675.  
  676. document.getElementById("sm_secondary_inner_interface").style.overflow = "none";
  677. document.getElementById("sm_secondary_inner_interface").style.height = "auto";
  678. document.getElementById("sm_container_secondary").style.height = "auto";
  679. document.getElementById("sm_secondary_interface").style.height = "auto";
  680. //document.getElementById("sm_scrollbar_enabled").style.fontWeight = "normal";
  681. //document.getElementById("sm_scrollbar_disabled").style.fontWeight = "bold";
  682. }
  683.  
  684. function sm_registerbar_load(sm_access_level) {
  685. if (sm_access_level==1) {
  686. scroll(0, 0);
  687. 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>";
  688. }
  689. else if (sm_access_level==2) {
  690. scroll(0, 0);
  691. 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\" />";
  692. if (window.SM_USER_PLUS==false) {
  693. 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\" />";
  694. }
  695. sm_registerbar_code += "</div>";
  696. }
  697. if (document.getElementById('sm_primary_interface').style.display=="block") {
  698. document.getElementById('sm_registerbar_primary').innerHTML = sm_registerbar_code;
  699. sm_element_add('sm_registerbar_primary', 10);
  700. }
  701. else {
  702. document.getElementById('sm_registerbar_secondary').innerHTML = sm_registerbar_code;
  703. sm_element_add('sm_registerbar_secondary', 10);
  704. }
  705. }
  706.  
  707. function sm_registerbar_remove() {
  708. document.getElementById('sm_registerbar_primary').innerHTML = "";
  709. document.getElementById('sm_registerbar_secondary').innerHTML = "";
  710. sm_element_remove('sm_registerbar_primary', 5);
  711. sm_element_remove('sm_registerbar_secondary', 5);
  712. }
  713.  
  714. function sm_http_protocol(sm_initial) {
  715. if (window.SM_LOAD_HTTP==true) {
  716. return false;
  717. }
  718. if (window.SM_LOAD_HTTP_SUB==true) {
  719. setTimeout("sm_http_protocol("+sm_initial+")", 100);
  720. return false;
  721. }
  722. sm_http_object = sm_http_object_retrieve();
  723. if (sm_http_object!=null) {
  724. window.SM_LOAD_HTTP = true;
  725. sm_element_snap_add("sm_loading_notice");
  726. sm_element_remove("sm_errorbar_primary", 2);
  727. sm_element_remove("sm_errorbar_secondary", 2);
  728. sm_element_remove("sm_primary_interface", 2);
  729. sm_load_add(sm_initial);
  730. var sm_hash = window.location.hash;
  731. var sm_count = 7;
  732. if (sm_hash.search(/&SM_LENGTH=/)!=-1) {
  733. var sm_length_array = sm_hash.split("&SM_LENGTH=");
  734. if (sm_hash.search(/&/)==-1&&sm_length_array[1]==parseFloat(sm_length_array[1])) {
  735. var sm_count = sm_length_array[1];
  736. }
  737. else {
  738. var sm_length_array = sm_length_array[1].split("&");
  739. if (sm_length_array[0]==parseFloat(sm_length_array[0])) {
  740. var sm_count = sm_length_array[0];
  741. }
  742. }
  743. document.getElementById('sm_count_secondary').value = sm_count;
  744. document.getElementById('sm_count_primary').value = sm_count;
  745. }
  746. if (sm_hash.search(/&SM_KEYWORD=/)!=-1) {
  747. window.SM_KEYWORD_ARRAY = sm_flash_refresh();
  748. var sm_keyword = "&SM_KEYWORD="+window.SM_KEYWORD_ARRAY[0];
  749. var sm_keyword_initial = true;
  750. for (sm_key in window.SM_KEYWORD_ARRAY) {
  751. if (sm_keyword_initial==true) {
  752. sm_keyword_initial = false;
  753. var sm_keyword = "&SM_KEYWORD="+sm_key;
  754. }
  755. else {
  756. sm_keyword += "+"+sm_key;
  757. }
  758. }
  759. }
  760. else {
  761. var sm_keyword = "";
  762. }
  763. 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) {
  764. var sm_question_avoid = "&SM_QUESTION_AVOID";
  765. 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) {
  766. document.getElementById('sm_check_question_avoid_visual').indeterminate = true;
  767. }
  768. else {
  769. document.getElementById('sm_check_question_avoid_visual').checked = true;
  770. }
  771. }
  772. else {
  773. var sm_question_avoid = "";
  774. document.getElementById('sm_check_question_avoid_visual').checked = false;
  775. }
  776. 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) {
  777. var sm_exclamation_avoid = "&SM_EXCLAMATION_AVOID";
  778. 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) {
  779. document.getElementById('sm_check_exclamation_avoid_visual').indeterminate = true;
  780. }
  781. else {
  782. document.getElementById('sm_check_exclamation_avoid_visual').checked = true;
  783. }
  784. }
  785. else {
  786. var sm_exclamation_avoid = "";
  787. document.getElementById('sm_check_exclamation_avoid_visual').checked = false;
  788. }
  789. 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) {
  790. var sm_quote_avoid = "&SM_QUOTE_AVOID";
  791. 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) {
  792. document.getElementById('sm_check_quote_avoid_visual').indeterminate = true;
  793. }
  794. else {
  795. document.getElementById('sm_check_quote_avoid_visual').checked = true;
  796. }
  797. }
  798. else {
  799. var sm_quote_avoid = "";
  800. document.getElementById('sm_check_quote_avoid_visual').checked = false;
  801. }
  802. 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) {
  803. var sm_heat_map = "&SM_HEAT_MAP";
  804. 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) {
  805. document.getElementById('sm_check_heat_map_visual').indeterminate = true;
  806. }
  807. else {
  808. document.getElementById('sm_check_heat_map_visual').checked = true;
  809. }
  810. }
  811. else {
  812. var sm_heat_map = "";
  813. document.getElementById('sm_check_heat_map_visual').checked = false;
  814. }
  815. if ((sm_initial==1&&typeof window.SM_USER_SETTINGS_SAVE!="undefined")&&window.SM_USER_SETTINGS_SAVE.search(/&SM_QUICK_TRANSITIONS/)!=-1) {
  816. document.getElementById('sm_check_quick_transitions_visual').checked = true;
  817. }
  818. if ((sm_initial==1&&typeof window.SM_USER_SETTINGS_SAVE!="undefined")&&window.SM_USER_SETTINGS_SAVE.search(/&SM_SPECIFY_TOPIC/)!=-1) {
  819. document.getElementById('sm_check_specify_topic_visual').checked = true;
  820. }
  821. 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) {
  822. var sm_strict_scan = "&SM_STRICT_SCAN";
  823. 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) {
  824. document.getElementById('sm_flash_strict_check').indeterminate = true;
  825. }
  826. else {
  827. document.getElementById('sm_flash_strict_check').checked = true;
  828. }
  829. }
  830. else {
  831. var sm_strict_scan = "";
  832. document.getElementById('sm_flash_strict_check').checked = false;
  833. }
  834. if (window.SM_REDUCTION_REQUEST==true) {
  835. window.SM_REDUCTION_REQUEST = false;
  836. var sm_reduction_count = document.getElementById('sm_reduction_main').value;
  837. }
  838. else {
  839. var sm_reduction_count = -1;
  840. }
  841. if (window.SM_CHARACTER_REQUEST==true&&sm_reduction_count==-1) {
  842. window.SM_CHARACTER_REQUEST = false;
  843. var sm_character_count = document.getElementById('sm_character_main').value;
  844. }
  845. else {
  846. var sm_character_count = -1;
  847. }
  848. if (sm_hash.search(/&SM_DEBUG/)!=-1) {
  849. var sm_debug = "&SM_DEBUG";
  850. }
  851. else {
  852. var sm_debug = "";
  853. }
  854. var sm_parameter_extra_composite = sm_keyword+sm_question_avoid+sm_exclamation_avoid+sm_quote_avoid+sm_heat_map+sm_strict_scan+sm_debug;
  855. if (sm_initial==1) {
  856. 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;
  857. window.location.hash = "&SM_LENGTH="+sm_count+sm_parameter_extra_composite;
  858. }
  859. sm_http_object.open("GET", "https://smmry.com/sm_portal.php?&SM_TOKEN=1669516522&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");
  860. sm_http_object.send(null);
  861. sm_http_object.onreadystatechange = function(){
  862. if (sm_http_object.readyState == 4) {
  863. var sm_response = sm_http_object.responseText;
  864. sm_response = sm_response.replace(/\[SM_a\]/g, "<span id=\"sm_flash_");
  865. sm_response = sm_response.replace(/\[SM_b\]/g, "\" onclick=\"sm_flash_process('");
  866. sm_response = sm_response.replace(/\[SM_c\]/g, "', this,");
  867. sm_response = sm_response.replace(/\[SM_d\]/g, ")\" onmouseover=\"sm_flash_add('");
  868. sm_response = sm_response.replace(/\[SM_e\]/g, "', this, ");
  869. sm_response = sm_response.replace(/\[SM_f\]/g, ");\" onmouseout=\"sm_flash_remove('");
  870. sm_response = sm_response.replace(/\[SM_g\]/g, ");\">");
  871. sm_response = sm_response.replace(/\[SM_h\]/g, "</span>");
  872. sm_response = sm_response.replace(/\[SM_i\]/g, "<span style=\"background-color:");
  873. sm_response = sm_response.replace(/\[SM_j\]/g, "rgb(255, ");
  874. sm_response = sm_response.replace(/\[SM_k\]/g, ", 0)\"> ");
  875. sm_response = sm_response.replace(/\[SM_l\]/g, "<br><br>");
  876. sm_response = sm_response.replace(/\[SM_m\]/g, "<sm_break><sm_break>");
  877. sm_response = sm_response.replace(/\[SM_n\]/g, "rgb(75, ");
  878.  
  879. if (sm_response.search(/SM_DIVIDE/)==-1) {
  880. sm_errorbar_message("INTERNAL SERVER ERROR OCCURED", "primary");
  881. sm_element_snap_remove("sm_secondary_interface");
  882. sm_element_snap_remove("sm_secondary_upper_bar");
  883. sm_element_snap_remove("sm_flashbar_container");
  884. sm_element_snap_remove("sm_lower_container");
  885. sm_element_snap_add("sm_primary_interface");
  886. if (window.SM_VIEW_FIXED==false) {
  887. document.getElementById('sm_footer_container').style.top = (parseFloat(document.getElementById('sm_footer_container').style.top)+20)+"px";
  888. }
  889. sm_upload_initiate();
  890. }
  891. else {
  892. var sm_response_array = sm_response.split("SM_DIVIDE");
  893. if (sm_response_array[1].search(/SENTENCE AMOUNT REDUCED/)!=-1) {
  894. var sm_count_array = sm_response.split("REDUCED TO ");
  895. var sm_count_array = sm_count_array[1].split("SM_DIVIDE");
  896. document.getElementById('sm_count_secondary').value = sm_count_array[0];
  897. window.location.hash = "&SM_LENGTH="+sm_count_array[0]+sm_parameter_extra_composite;
  898. }
  899. if (sm_response_array[1].search(/MAXIMUM SENTENCE AMOUNT IS/)!=-1) {
  900. var sm_count_array = sm_response.split("MAXIMUM SENTENCE AMOUNT IS ");
  901. var sm_count_array = sm_count_array[1].split("SM_DIVIDE");
  902. document.getElementById('sm_count_secondary').value = sm_count_array[0];
  903. window.location.hash = "&SM_LENGTH="+sm_count_array[0]+sm_parameter_extra_composite;
  904. }
  905. if (sm_response_array[1].search(/MINIMUM SENTENCE AMOUNT IS/)!=-1) {
  906. var sm_count_array = sm_response.split("MINIMUM SENTENCE AMOUNT IS ");
  907. var sm_count_array = sm_count_array[1].split("SM_DIVIDE");
  908. document.getElementById('sm_count_secondary').value = sm_count_array[0];
  909. window.location.hash = "&SM_LENGTH="+sm_count_array[0]+sm_parameter_extra_composite;
  910. }
  911. document.getElementById('sm_errorbar_primary').innerHTML = "";
  912. document.getElementById('sm_errorbar_secondary').innerHTML = "";
  913. if (sm_response_array[0]==1) {
  914. sm_element_snap_remove("sm_secondary_interface");
  915. sm_element_snap_remove("sm_secondary_upper_bar");
  916. sm_element_snap_remove("sm_flashbar_container");
  917. sm_element_snap_remove("sm_lower_container");
  918. sm_element_snap_add("sm_primary_interface");
  919. if (window.SM_VIEW_FIXED==false) {
  920. document.getElementById('sm_footer_container').style.top = (parseFloat(document.getElementById('sm_footer_container').style.top)+20)+"px";
  921. }
  922. sm_errorbar_message(sm_response_array[1], "primary");
  923. sm_upload_initiate();
  924. } else {
  925. sm_element_snap_remove("sm_load_shade");
  926. if (sm_heat_map=="&SM_HEAT_MAP") {
  927. sm_heat_map_add();
  928. }
  929. window.SM_BATON_TITLE = sm_response_array[2];
  930. window.SM_BATON_OUTPUT = sm_response_array[3];
  931. if (window.SM_BATON_OUTPUT.length==0) {
  932. 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>";
  933. }
  934. setTimeout("sm_load_remove_wait(1, "+sm_initial+");", 10);
  935. if (sm_response_array[1]!="") {
  936. sm_errorbar_message(sm_response_array[1], "secondary");
  937. }
  938. if (sm_response_array[4]!="") {
  939. var sm_flash_array = new Object();
  940. var sm_flash_sub_array = new Object();
  941. var sm_flash_sub_sub_array = new Object();
  942. var sm_flash_transfer_array = sm_response_array[4].split("[SM_B]");
  943. sm_flash_transfer_array.splice(0, 1);
  944. for (sm_key in sm_flash_transfer_array) {
  945. var sm_flash_transfer_sub_array = sm_flash_transfer_array[sm_key].split("[SM_C]");
  946. sm_flash_sub_array[sm_flash_transfer_sub_array[1]] = sm_flash_transfer_sub_array[0];
  947. sm_flash_sub_sub_array[sm_flash_transfer_sub_array[0]] = sm_flash_transfer_sub_array[1];
  948. sm_flash_array[sm_flash_transfer_sub_array[0]] = new Array();
  949. var sm_flash_transfer_sub_sub_array = sm_flash_transfer_sub_array[2].split("[SM_D]");
  950. sm_flash_transfer_sub_sub_array.splice(0, 1);
  951. for (sm_key_sub in sm_flash_transfer_sub_sub_array) {
  952. sm_flash_array[sm_flash_transfer_sub_array[0]].push(sm_flash_transfer_sub_sub_array[sm_key_sub]);
  953. }
  954. }
  955. window.SM_FLASH_GROUP_ARRAY = sm_flash_array;
  956. window.SM_FLASH_SHORT_ARRAY = sm_flash_sub_array;
  957. window.SM_FLASH_REVERSE_ARRAY = sm_flash_sub_sub_array;
  958. }
  959. if (sm_response_array[5]!="") {
  960. var sm_flash_array = new Array();
  961. var sm_flash_sub_array = new Object();
  962. var sm_flash_transfer_array = sm_response_array[5].split("[SM_B]");
  963. sm_flash_transfer_array.splice(0, 1);
  964. var sm_flash_counter = sm_substr_count(sm_response_array[5], "[SM_B]");
  965. for (sm_key in sm_flash_transfer_array) {
  966. var sm_flash_transfer_sub_array = sm_flash_transfer_array[sm_key].split("[SM_C]");
  967. sm_flash_sub_array[sm_flash_transfer_sub_array[0]] = sm_flash_transfer_sub_array[1];
  968. sm_flash_array[sm_flash_counter] = sm_flash_transfer_sub_array[0];
  969. sm_flash_counter--;
  970. }
  971. window.SM_FLASH_RANK_ARRAY = sm_flash_array;
  972. window.SM_FLASH_COLOUR_ARRAY = sm_flash_sub_array;
  973. }
  974. if (sm_response_array[6]!="") {
  975. document.getElementById('sm_reduction_main').value = sm_response_array[6];
  976. if (sm_initial==1) {
  977. window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE = window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE.replace("[SM_REDUCTION_SPOT]", sm_response_array[6]);
  978. }
  979. if (window.SM_REDUCTION_FOCUS==true) {
  980. sm_select_count(document.getElementById('sm_reduction_main'));
  981. }
  982. }
  983. if (sm_response_array[7]!="") {
  984. document.getElementById('sm_character_main').value = sm_response_array[7];
  985. if (sm_initial==1) {
  986. window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE = window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE.replace("[SM_CHARACTER_SPOT]", sm_response_array[7]);
  987. }
  988. if (window.SM_CHARACTER_FOCUS==true) {
  989. sm_select_count(document.getElementById('sm_character_main'));
  990. }
  991. }
  992. if (window.SM_COUNT_FOCUS==true) {
  993. sm_select_count(document.getElementById('sm_count_secondary'));
  994. }
  995. if (sm_response_array[8]!="") {
  996. document.getElementById('sm_count_secondary').value = sm_response_array[8];
  997. sm_resummarize_process(2);
  998. }
  999. if (sm_response_array[9]!="") {
  1000. window.SM_SIGNATURE = sm_response_array[9];
  1001. }
  1002. if (sm_response_array[10]!="") {
  1003. document.getElementById("sm_container_debug").innerHTML = sm_response_array[10];
  1004. document.getElementById("sm_container_debug").style.display = "block";
  1005. document.getElementById("sm_outer_debug").style.display = "block";
  1006. }
  1007. else {
  1008. document.getElementById("sm_container_debug").innerHTML = "";
  1009. document.getElementById("sm_container_debug").style.display = "none";
  1010. document.getElementById("sm_outer_debug").style.display = "none";
  1011. }
  1012. }
  1013. }
  1014. window.SM_FLASH_PROCESS_BLOCK = false;
  1015. window.SM_LOAD_HTTP = false;
  1016. sm_element_snap_remove("sm_loading_notice");
  1017. }
  1018. }
  1019. }
  1020. }
  1021.  
  1022. function sm_heat_map_add() {
  1023. document.getElementById('sm_container_secondary').style.backgroundColor = "#939393";
  1024. document.getElementById('sm_secondary_text_style').style.backgroundColor = "#666666";
  1025. document.getElementById('sm_reduction_main').style.backgroundColor = "#666666";
  1026. document.getElementById('sm_reduction_main').style.borderTopColor = "#333333";
  1027. document.getElementById('sm_reduction_main').style.borderLeftColor = "#333333";
  1028. document.getElementById('sm_reduction_main').style.borderBottomColor = "#ead9ff";
  1029. document.getElementById('sm_reduction_main').style.borderRightColor = "#ead9ff";
  1030. document.getElementById('sm_character_main').style.backgroundColor = "#666666";
  1031. document.getElementById('sm_character_main').style.borderTopColor = "#333333";
  1032. document.getElementById('sm_character_main').style.borderLeftColor = "#333333";
  1033. document.getElementById('sm_character_main').style.borderBottomColor = "#ead9ff";
  1034. document.getElementById('sm_character_main').style.borderRightColor = "#ead9ff";
  1035. }
  1036.  
  1037. function sm_heat_map_remove() {
  1038. document.getElementById('sm_container_secondary').style.backgroundColor = "#ead9ff";
  1039. document.getElementById('sm_secondary_text_style').style.backgroundColor = "#cebee2";
  1040. document.getElementById('sm_reduction_main').style.backgroundColor = "#cebee2";
  1041. document.getElementById('sm_reduction_main').style.borderTopColor = "#c141c1";
  1042. document.getElementById('sm_reduction_main').style.borderLeftColor = "#c141c1";
  1043. document.getElementById('sm_reduction_main').style.borderBottomColor = "#b7a3d1";
  1044. document.getElementById('sm_reduction_main').style.borderRightColor = "#b7a3d1";
  1045. document.getElementById('sm_character_main').style.backgroundColor = "#cebee2";
  1046. document.getElementById('sm_character_main').style.borderTopColor = "#c141c1";
  1047. document.getElementById('sm_character_main').style.borderLeftColor = "#c141c1";
  1048. document.getElementById('sm_character_main').style.borderBottomColor = "#b7a3d1";
  1049. document.getElementById('sm_character_main').style.borderRightColor = "#b7a3d1";
  1050. }
  1051.  
  1052. function sm_flash_refresh() {
  1053. var sm_hash = window.location.hash;
  1054. var sm_keyword_local_array = new Array();
  1055. if (sm_hash.search(/&SM_KEYWORD=/)!=-1) {
  1056. var sm_keyword_array = sm_hash.split("&SM_KEYWORD=");
  1057. if (sm_keyword_array[1].search(/&/)==-1) {
  1058. var sm_keyboard_compile = sm_keyword_array[1];
  1059. }
  1060. else {
  1061. var sm_keyword_sub_array = sm_keyword_array[1].split("&");
  1062. var sm_keyboard_compile = sm_keyword_sub_array[0];
  1063. }
  1064. if (sm_keyboard_compile.search(/\+/)==-1&&parseFloat(sm_keyboard_compile)==sm_keyboard_compile) {
  1065. sm_keyword_local_array[sm_keyboard_compile] = true;
  1066. }
  1067. else {
  1068. sm_keyword_array = sm_keyboard_compile.split("+");
  1069. var sm_keyword_counter = 0;
  1070. for (sm_key in sm_keyword_array) {
  1071. if (sm_keyword_counter==5) {
  1072. break;
  1073. }
  1074. if (parseFloat(sm_keyword_array[sm_key])==sm_keyword_array[sm_key]) {
  1075. sm_keyword_local_array[sm_keyword_array[sm_key]] = true;
  1076. }
  1077. sm_keyword_counter++;
  1078. }
  1079. }
  1080. }
  1081. return sm_keyword_local_array;
  1082. }
  1083.  
  1084. function sm_flash_purge() {
  1085. if (window.SM_FLASH_PROCESS_BLOCK==true) {
  1086. return false;
  1087. }
  1088. if (window.SM_FLASHBAR_PURGE_BLOCK==false) {
  1089. window.SM_FLASHBAR_BUILD = "";
  1090. window.SM_FLASH_CURRENT_ARRAY = new Array();
  1091. }
  1092. for (sm_key in window.SM_KEYWORD_ARRAY) {
  1093. for (sm_key_sub in window.SM_FLASH_GROUP_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]]) {
  1094. if (document.getElementById("sm_flash_"+window.SM_FLASH_GROUP_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]][sm_key_sub])) {
  1095. 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]];
  1096. }
  1097. if (window.SM_FLASHBAR_PURGE_BLOCK==false&&typeof window.SM_FLASH_CURRENT_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]]=="undefined") {
  1098. window.SM_FLASH_CURRENT_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]] = true;
  1099. window.SM_FLASHBAR_BUILD += window.SM_FLASH_REVERSE_ARRAY[window.SM_FLASH_RANK_ARRAY[sm_key]]+" ";
  1100. }
  1101. }
  1102. }
  1103. if (window.SM_FLASHBAR_PURGE_BLOCK==false&&window.SM_FLASHBAR_BUILD!="") {
  1104. sm_flashbar_activate();
  1105. sm_flashbar_character("");
  1106. }
  1107. if (window.SM_FLASHBAR_PURGE_BLOCK==true) {
  1108. window.SM_FLASHBAR_PURGE_BLOCK = false;
  1109. }
  1110. }
  1111.  
  1112. function sm_flash_clear() {
  1113. window.SM_KEYWORD_ARRAY = new Array();
  1114. window.SM_FLASH_CURRENT_ARRAY = new Array();
  1115. sm_resummarize_process(0);
  1116. }
  1117.  
  1118. function sm_flash_process(sm_flash_group_unique, sm_object, sm_active) {
  1119. window.SM_FLASHBAR_HOVER_SUB = false;
  1120. if (sm_active!=0&&window.SM_SPECIFY_TOPIC_STATE==0) {
  1121. sm_specify_topic_indeterminate();
  1122. }
  1123. if (sm_active==1||sm_active==2) {
  1124. window.SM_FLASH_PROCESS_BLOCK = true;
  1125. sm_keyword_local_array = sm_flash_refresh();
  1126. var sm_keyword_counter = 0;
  1127. for (sm_key in sm_keyword_local_array) {
  1128. if (sm_keyword_local_array[sm_key]==true) {
  1129. sm_keyword_counter++;
  1130. }
  1131. }
  1132. 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) {
  1133. delete sm_keyword_local_array[sm_array_search(sm_flash_group_unique, window.SM_FLASH_RANK_ARRAY)];
  1134. window.SM_KEYWORD_ARRAY = sm_keyword_local_array;
  1135. delete window.SM_FLASH_CURRENT_ARRAY[sm_flash_group_unique];
  1136. if (sm_active==1) {
  1137. window.SM_FLASHBAR_BUILD = window.SM_FLASHBAR_BUILD.replace(window.SM_FLASH_REVERSE_ARRAY[sm_flash_group_unique]+" ", "");
  1138. sm_flashbar_activate();
  1139. sm_flashbar_character("");
  1140. if (window.SM_FLASHBAR_BUILD=="") {
  1141. sm_flashbar_reset();
  1142. }
  1143. }
  1144. sm_resummarize_process(0);
  1145. }
  1146. else if (sm_keyword_counter<5) {
  1147. sm_keyword_local_array[sm_array_search(sm_flash_group_unique, window.SM_FLASH_RANK_ARRAY)] = true;
  1148. window.SM_KEYWORD_ARRAY = sm_keyword_local_array;
  1149. window.SM_FLASH_CURRENT_ARRAY[sm_flash_group_unique] = true;
  1150. if (sm_active==1) {
  1151. window.SM_FLASHBAR_BUILD += window.SM_FLASH_REVERSE_ARRAY[sm_flash_group_unique]+" ";
  1152. sm_flashbar_activate();
  1153. sm_flashbar_character("");
  1154. }
  1155. sm_resummarize_process(0);
  1156. }
  1157. else {
  1158. document.getElementById('sm_flash_warning_container').style.top = (sm_object_position_top(sm_object)-40)+"px";
  1159. document.getElementById('sm_flash_warning_container').style.left = (sm_object_position_left(sm_object)-185)+"px";
  1160. sm_element_add("sm_flash_warning_container", 2);
  1161. setTimeout("sm_element_remove(\"sm_flash_warning_container\", 2);", 1800);
  1162. }
  1163. }
  1164. else {
  1165. document.getElementById('sm_flash_info_container').style.top = (sm_object_position_top(sm_object)-40)+"px";
  1166. document.getElementById('sm_flash_info_container').style.left = (sm_object_position_left(sm_object)+(sm_object.offsetWidth/2)-120)+"px";
  1167. sm_element_add("sm_flash_info_container", 2);
  1168. setTimeout("sm_element_remove(\"sm_flash_info_container\", 2);", 990);
  1169. }
  1170. }
  1171.  
  1172. function sm_flash_add(sm_flash_group_unique, sm_object, sm_active) {
  1173. if (sm_active==1) {
  1174. for (sm_key in window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique]) {
  1175. if (document.getElementById("sm_flash_"+window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique][sm_key])) {
  1176. 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];
  1177. document.getElementById("sm_flash_"+window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique][sm_key]).style.cursor = 'pointer';
  1178. }
  1179. }
  1180. }
  1181. else {
  1182. sm_object.style.backgroundColor = "#ead9ff";
  1183. sm_object.style.cursor = 'pointer';
  1184. }
  1185. }
  1186.  
  1187.  
  1188. function sm_flash_remove(sm_flash_group_unique, sm_object, sm_active) {
  1189. if (sm_active==1) {
  1190. for (sm_key in window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique]) {
  1191. 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)]) {
  1192. document.getElementById("sm_flash_"+window.SM_FLASH_GROUP_ARRAY[sm_flash_group_unique][sm_key]).style.backgroundColor = "transparent";
  1193. }
  1194. }
  1195. }
  1196. else {
  1197. sm_object.style.backgroundColor = "transparent";
  1198. }
  1199. }
  1200.  
  1201. function sm_flashbar_key_cycle() {
  1202. if (document.getElementById('sm_flashbar_key_input').value=="") {
  1203. setTimeout("sm_flashbar_key_cycle()", 1);
  1204. }
  1205. else {
  1206. sm_flashbar_input();
  1207. }
  1208. }
  1209.  
  1210. function sm_flashbar_input() {
  1211. var sm_key = document.getElementById('sm_flashbar_key_input').value;
  1212. document.getElementById('sm_flashbar_key_input').value = "";
  1213. if (window.SM_FLASHBAR_BUSY==false&&window.SM_FLASH_PROCESS_BLOCK==false) {
  1214. sm_flashbar_character(sm_key);
  1215. }
  1216. }
  1217.  
  1218. function sm_flashbar_recover() {
  1219. if (window.SM_FLASHBAR_SELECTED==true) {
  1220. setTimeout("document.getElementById('sm_flashbar_key_input').focus();", 1);
  1221. }
  1222. }
  1223.  
  1224. function sm_flashbar_rollback() {
  1225. if (window.SM_FLASHBAR_BUILD.length>0) {
  1226. var sm_pointer = window.SM_FLASHBAR_BUILD.length-1;
  1227. while (window.SM_FLASHBAR_BUILD.substr(sm_pointer, 1)!=" "&&window.SM_FLASHBAR_BUILD.length>0) {
  1228. window.SM_FLASHBAR_BUILD = window.SM_FLASHBAR_BUILD.substr(0, sm_pointer);
  1229. sm_pointer--;
  1230. }
  1231. }
  1232. window.SM_FLASHBAR_TYPE_BLOCK = false;
  1233. }
  1234.  
  1235. function sm_flashbar_up() {
  1236. if (window.SM_FLASHBAR_NAV>0) {
  1237. window.SM_FLASHBAR_NAV--;
  1238. }
  1239. var sm_counter = window.SM_FLASHBAR_NAV_MAX;
  1240. for (sm_key in window.SM_FLASHBAR_NAV_MENU) {
  1241. if (sm_counter==(window.SM_FLASHBAR_NAV+1)&&document.getElementById('sm_flashbar_list_element_'+(window.SM_FLASHBAR_NAV+1))) {
  1242. document.getElementById('sm_flashbar_list_element_'+(window.SM_FLASHBAR_NAV+1)).style.backgroundColor = window.SM_FLASHBAR_NAV_MENU[sm_key];
  1243. }
  1244. else if (sm_counter!=0&&sm_counter==window.SM_FLASHBAR_NAV) {
  1245. sm_flashbar_outer_update(sm_key);
  1246. }
  1247. sm_counter--;
  1248. }
  1249. if (document.getElementById('sm_flashbar_list_element_'+window.SM_FLASHBAR_NAV)) {
  1250. document.getElementById('sm_flashbar_list_element_'+window.SM_FLASHBAR_NAV).style.backgroundColor = "#F60";
  1251. }
  1252. else {
  1253. sm_flashbar_outer_update(false);
  1254. }
  1255. }
  1256.  
  1257. function sm_flashbar_down() {
  1258. if (window.SM_FLASHBAR_NAV<window.SM_FLASHBAR_NAV_MAX) {
  1259. window.SM_FLASHBAR_NAV++;
  1260. }
  1261. var sm_counter = window.SM_FLASHBAR_NAV_MAX;
  1262. for (sm_key in window.SM_FLASHBAR_NAV_MENU) {
  1263. if (sm_counter==(window.SM_FLASHBAR_NAV-1)&&document.getElementById('sm_flashbar_list_element_'+(window.SM_FLASHBAR_NAV-1))) {
  1264. document.getElementById('sm_flashbar_list_element_'+(window.SM_FLASHBAR_NAV-1)).style.backgroundColor = window.SM_FLASHBAR_NAV_MENU[sm_key];
  1265. }
  1266. else if (sm_counter==window.SM_FLASHBAR_NAV) {
  1267. sm_flashbar_outer_update(sm_key);
  1268. }
  1269. sm_counter--;
  1270. }
  1271. if (document.getElementById('sm_flashbar_list_element_'+window.SM_FLASHBAR_NAV)) {
  1272. document.getElementById('sm_flashbar_list_element_'+window.SM_FLASHBAR_NAV).style.backgroundColor = "#F60";
  1273. }
  1274. }
  1275.  
  1276. function sm_flashbar_list_rebuild() {
  1277. var sm_counter = window.SM_FLASHBAR_NAV_MAX;
  1278. for (sm_key in window.SM_FLASHBAR_NAV_MENU) {
  1279. document.getElementById('sm_flashbar_list_element_'+sm_counter).style.backgroundColor = window.SM_FLASHBAR_NAV_MENU[sm_key];
  1280. sm_counter--;
  1281. }
  1282. }
  1283.  
  1284. function sm_flashbar_list_update(sm_flashbar_list_focus) {
  1285. sm_flashbar_list_build = "";
  1286. if (sm_flashbar_list_focus=="") {
  1287. var sm_flash_colour_local = new Array();
  1288. for (sm_key in window.SM_FLASH_COLOUR_ARRAY) {
  1289. if (typeof window.SM_FLASH_CURRENT_ARRAY[sm_key]=="undefined") {
  1290. sm_flash_colour_local[sm_key] = window.SM_FLASH_COLOUR_ARRAY[sm_key];
  1291. }
  1292. }
  1293. }
  1294. else {
  1295. var sm_flash_colour_local = new Array();
  1296. for (sm_key in window.SM_FLASH_COLOUR_ARRAY) {
  1297. 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()) {
  1298. sm_flash_colour_local[sm_key] = window.SM_FLASH_COLOUR_ARRAY[sm_key];
  1299. }
  1300. }
  1301. }
  1302. var sm_made = false;
  1303. var sm_counter = 0;
  1304. for (sm_key in sm_flash_colour_local) {
  1305. sm_counter++;
  1306. }
  1307. window.SM_FLASHBAR_NAV_MAX = sm_counter;
  1308. window.SM_FLASHBAR_NAV_MENU = sm_flash_colour_local;
  1309. for (sm_key in sm_flash_colour_local) {
  1310. sm_made = true;
  1311. 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;
  1312. sm_counter--;
  1313. }
  1314. var sm_counter = 0;
  1315. for (sm_key in window.SM_FLASH_CURRENT_ARRAY) {
  1316. sm_counter++;
  1317. }
  1318. if (sm_counter>=5) {
  1319. window.SM_FLASHBAR_TYPE_BLOCK = true;
  1320. 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>";
  1321. var sm_flashbar_push_local = "0px";
  1322. setTimeout("sm_flashbar_pointer_manual(1)", 1);
  1323. }
  1324. else if (sm_made==false) {
  1325. window.SM_FLASHBAR_TYPE_BLOCK = true;
  1326. 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>";
  1327. var sm_flashbar_push_local = "0px";
  1328. }
  1329. else {
  1330. window.SM_FLASHBAR_TYPE_BLOCK = false;
  1331. var sm_flashbar_push_local = window.SM_FLASHBAR_PUSH;
  1332. }
  1333. var sm_position_base = sm_object_position_top(document.getElementById('sm_flashbar_container'));
  1334. document.getElementById('sm_flashbar_pointer').style.top = (sm_position_base-6)+"px";
  1335. document.getElementById('sm_flashbar_pointer_red').style.top = (sm_position_base-6)+"px";
  1336. document.getElementById('sm_flashbar_box').style.top = (sm_position_base+21)+"px";
  1337. document.getElementById('sm_flashbar_box_undercast').style.top = (sm_position_base+21)+"px";
  1338. 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>";
  1339. document.getElementById('sm_flashbar_box_undercast').style.height = document.getElementById('sm_flashbar_keyword_container').offsetHeight+"px";
  1340. return sm_flash_colour_local;
  1341. }
  1342.  
  1343. function sm_flashbar_build_process(sm_flashbar_build_local) {
  1344. var sm_flashbar_inner = "<span id=\"sm_flashbar_inner_set\">";
  1345. var sm_flashbar_outer = "";
  1346. var sm_flashbar_outer_match = "";
  1347. var sm_flashbar_list = "";
  1348. var sm_flashbar_build_last = sm_flashbar_build_local.substr(sm_flashbar_build_local.length-1, 1);
  1349. if (sm_flashbar_build_local.search(/ /)!=-1) {
  1350. var sm_flashbar_build_last_block = false;
  1351. var sm_flashbar_array = sm_flashbar_build_local.split(" ");
  1352. var sm_flashbar_array_length = sm_flashbar_array.length;
  1353. var sm_counter = 1;
  1354. for (sm_key in sm_flashbar_array) {
  1355. if (sm_flashbar_array_length==sm_counter&&sm_flashbar_build_last!=" ") {
  1356. sm_flashbar_inner += "</span>";
  1357. sm_flashbar_build_last_block = true;
  1358. }
  1359. if (sm_flashbar_array_length!=sm_counter&&window.SM_FLASH_COLOUR_ARRAY[window.SM_FLASH_SHORT_ARRAY[sm_flashbar_array[sm_key]]]) {
  1360. 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> ";
  1361. }
  1362. else if (sm_flashbar_array_length==sm_counter) {
  1363. sm_flashbar_outer_match = sm_flashbar_array[sm_key];
  1364. sm_flashbar_inner += "<span style=\"background-color:#ead9ff;\">"+sm_flashbar_array[sm_key]+"</span>";
  1365. }
  1366. else {
  1367. window.SM_FLASHBAR_BUILD = window.SM_FLASHBAR_BUILD.replace(sm_flashbar_array[sm_key]+" ", "");
  1368. }
  1369. sm_flashbar_list = sm_flashbar_array[sm_key];
  1370. sm_counter++;
  1371. }
  1372. if (sm_flashbar_build_last_block==false) {
  1373. sm_flashbar_inner += "</span>";
  1374. }
  1375. }
  1376. else {
  1377. if (sm_flashbar_build_local!="") {
  1378. sm_flashbar_outer_match = sm_flashbar_build_local;
  1379. if (sm_flashbar_build_last==" "&&window.SM_FLASH_COLOUR_ARRAY[window.SM_FLASH_SHORT_ARRAY[sm_flashbar_build_local]]) {
  1380. 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>";
  1381. }
  1382. else {
  1383. sm_flashbar_inner = "<span style=\"background-color:#ead9ff;\">"+sm_flashbar_build_local+"</span>";
  1384. }
  1385. sm_flashbar_inner += "</span>";
  1386. sm_flashbar_list = sm_flashbar_build_local;
  1387. }
  1388. }
  1389.  
  1390. window.SM_FLASHBAR_OUTER_RAW = false;
  1391. window.SM_FLASHBAR_OUTER_RAW_RAW = false;
  1392. sm_flash_colour_remote = sm_flashbar_list_update(sm_flashbar_list);
  1393. var sm_flash_colour_remote_length = 0;
  1394. for (sm_key in sm_flash_colour_remote) {
  1395. sm_flash_colour_remote_length++;
  1396. }
  1397. if (sm_flash_colour_remote_length>0&&sm_flashbar_outer_match!="") {
  1398. var sm_flashbar_nav_local = window.SM_FLASHBAR_NAV;
  1399. if (sm_flashbar_nav_local==0) {
  1400. sm_flashbar_nav_local = 1;
  1401. }
  1402. var sm_flashbar_outer_complete = "";
  1403. var sm_counter = sm_flash_colour_remote_length;
  1404. for (sm_key in sm_flash_colour_remote) {
  1405. if (sm_counter==sm_flashbar_nav_local) {
  1406. window.SM_FLASHBAR_OUTER_RAW = sm_key;
  1407. window.SM_FLASHBAR_OUTER_RAW_RAW = sm_key;
  1408. var sm_flashbar_outer_complete = window.SM_FLASH_REVERSE_ARRAY[sm_key];
  1409. var sm_flashbar_outer_colour = sm_flash_colour_remote[sm_key];
  1410. sm_flashbar_outer_partial = sm_flashbar_outer_complete.substr(sm_flashbar_outer_match.length, sm_flashbar_outer_complete.length-sm_flashbar_outer_match.length);
  1411. sm_flashbar_outer = "<span style=\"background-color:"+sm_flashbar_outer_colour+"\">"+sm_flashbar_outer_partial+"</span>";
  1412. break;
  1413. }
  1414. sm_counter--;
  1415. }
  1416. }
  1417.  
  1418. window.SM_FLASHBAR_OUTER_MATCH = sm_flashbar_outer_match;
  1419.  
  1420. return "<span id=\"sm_flashbar_inner\">"+sm_flashbar_inner+"</span><span id=\"sm_flashbar_outer\">"+sm_flashbar_outer+"</span>";
  1421. }
  1422.  
  1423. function sm_flashbar_outer_update(sm_flashbar_keyword) {
  1424. if (document.getElementById('sm_flashbar_outer')&&window.SM_FLASHBAR_TYPE_BLOCK==false) {
  1425. var sm_flashbar_outer_content = "";
  1426. if (sm_flashbar_keyword===false) {
  1427. if (window.SM_FLASHBAR_OUTER_RAW_RAW!==false) {
  1428. window.SM_FLASHBAR_OUTER_RAW = window.SM_FLASHBAR_OUTER_RAW_RAW;
  1429. sm_flashbar_outer_match = window.SM_FLASHBAR_OUTER_MATCH;
  1430. sm_flashbar_outer_complete = window.SM_FLASH_REVERSE_ARRAY[window.SM_FLASHBAR_OUTER_RAW];
  1431. sm_flashbar_outer_partial = sm_flashbar_outer_complete.substr(sm_flashbar_outer_match.length, sm_flashbar_outer_complete.length-sm_flashbar_outer_match.length);
  1432. sm_flashbar_outer_content = "<span style=\"background-color:"+window.SM_FLASH_COLOUR_ARRAY[window.SM_FLASHBAR_OUTER_RAW]+"\">"+sm_flashbar_outer_partial+"</span>";
  1433. }
  1434. else {
  1435. window.SM_FLASHBAR_OUTER_RAW = false;
  1436. }
  1437. }
  1438. else if (document.getElementById('sm_flashbar_outer')&&typeof window.SM_FLASH_COLOUR_ARRAY[sm_flashbar_keyword]!="undefined") {
  1439. if (window.SM_FLASHBAR_OUTER_RAW_RAW!==false) {
  1440. sm_flashbar_outer_match = window.SM_FLASHBAR_OUTER_MATCH;
  1441. sm_flashbar_outer_complete = window.SM_FLASH_REVERSE_ARRAY[sm_flashbar_keyword];
  1442. sm_flashbar_outer_partial = sm_flashbar_outer_complete.substr(sm_flashbar_outer_match.length, sm_flashbar_outer_complete.length-sm_flashbar_outer_match.length);
  1443. }
  1444. else {
  1445. sm_flashbar_outer_partial = window.SM_FLASH_REVERSE_ARRAY[sm_flashbar_keyword];
  1446. }
  1447. window.SM_FLASHBAR_OUTER_RAW = sm_flashbar_keyword;
  1448. sm_flashbar_outer_content = "<span style=\"background-color:"+window.SM_FLASH_COLOUR_ARRAY[sm_flashbar_keyword]+"\">"+sm_flashbar_outer_partial+"</span>";
  1449. }
  1450. document.getElementById('sm_flashbar_outer').innerHTML = sm_flashbar_outer_content;
  1451. }
  1452. }
  1453.  
  1454. function sm_flashbar_add(sm_flashbar_keyword) {
  1455. window.SM_FLASHBAR_NAV = 0;
  1456. setTimeout("document.getElementById('sm_flashbar_key_input').focus()", 1);
  1457. sm_element_snap_add("sm_loading_notice");
  1458. sm_flashbar_rollback();
  1459. window.SM_FLASHBAR_OUTER_RAW = false;
  1460. window.SM_FLASHBAR_OUTER_RAW_RAW = false;
  1461. sm_flashbar_character(window.SM_FLASH_REVERSE_ARRAY[sm_flashbar_keyword]);
  1462. sm_flash_process(sm_flashbar_keyword, document.getElementById('sm_flashbar_main'), 2);
  1463. window.SM_FLASHBAR_OUTER_RAW = false;
  1464. window.SM_FLASHBAR_OUTER_RAW_RAW = false;
  1465. sm_flashbar_character(" ");
  1466. }
  1467.  
  1468. function sm_flashbar_delete() {
  1469. window.SM_FLASHBAR_NAV = 0;
  1470. if (window.SM_FLASHBAR_BUILD.search(/ /)!=-1) {
  1471. var sm_flashbar_array = window.SM_FLASHBAR_BUILD.split(" ");
  1472. delete sm_flashbar_array[sm_flashbar_array.length-1];
  1473. for (sm_key in window.SM_FLASH_CURRENT_ARRAY) {
  1474. if (sm_array_search(window.SM_FLASH_REVERSE_ARRAY[sm_key], sm_flashbar_array)===false) {
  1475. window.SM_FLASHBAR_PURGE_BLOCK = true;
  1476. sm_element_snap_add("sm_loading_notice");
  1477. sm_flash_process(sm_key, document.getElementById('sm_flashbar_main'), 2);
  1478. window.SM_FLASHBAR_OUTER_RAW = sm_key;
  1479. window.SM_FLASHBAR_OUTER_RAW_RAW = sm_key;
  1480. }
  1481. }
  1482. }
  1483. else {
  1484. for (sm_key in window.SM_FLASH_CURRENT_ARRAY) {
  1485. window.SM_FLASHBAR_PURGE_BLOCK = true;
  1486. sm_element_snap_add("sm_loading_notice");
  1487. sm_flash_process(sm_key, document.getElementById('sm_flashbar_main'), 2);
  1488. window.SM_FLASHBAR_OUTER_RAW = sm_key;
  1489. window.SM_FLASHBAR_OUTER_RAW_RAW = sm_key;
  1490. }
  1491. }
  1492. }
  1493.  
  1494. function sm_flashbar_character(sm_character) {
  1495. window.SM_FLASHBAR_BUSY = true;
  1496. if (sm_character==null) {
  1497. if (window.SM_FLASHBAR_BUILD.length>0) {
  1498. window.SM_FLASHBAR_BUILD = window.SM_FLASHBAR_BUILD.substr(0, window.SM_FLASHBAR_BUILD.length-1);
  1499. sm_flashbar_delete();
  1500. }
  1501. }
  1502. 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)) {
  1503. sm_flashbar_type_error();
  1504. window.SM_FLASHBAR_BUSY = false;
  1505. return false;
  1506. }
  1507. else {
  1508. if (sm_character==" "&&window.SM_FLASHBAR_OUTER_RAW!==false) {
  1509. sm_flashbar_add(window.SM_FLASHBAR_OUTER_RAW);
  1510. window.SM_FLASHBAR_BUSY = false;
  1511. return true;
  1512. }
  1513. else {
  1514. window.SM_FLASHBAR_BUILD += sm_character;
  1515. }
  1516. }
  1517. document.getElementById('sm_flashbar_main').innerHTML = sm_flashbar_build_process(window.SM_FLASHBAR_BUILD);
  1518. var sm_flashbar_build_last = window.SM_FLASHBAR_BUILD.substr(window.SM_FLASHBAR_BUILD.length-1, 1);
  1519. if (document.getElementById('sm_flashbar_inner')) {
  1520. var sm_flashbar_pointer_push = document.getElementById('sm_flashbar_inner').offsetWidth;
  1521. if (sm_flashbar_build_last==" ") {
  1522. sm_flashbar_pointer_push += 6;
  1523. }
  1524. }
  1525. else {
  1526. var sm_flashbar_pointer_push = 0;
  1527. }
  1528. document.getElementById('sm_flashbar_pointer').style.marginLeft = (-345 + sm_flashbar_pointer_push)+"px";
  1529. document.getElementById('sm_flashbar_pointer_red').style.marginLeft = (-345 + sm_flashbar_pointer_push)+"px";
  1530. if (document.getElementById('sm_flashbar_inner_set')) {
  1531. var sm_flashbar_inner_set_width = document.getElementById('sm_flashbar_inner_set').offsetWidth;
  1532. if (sm_flashbar_build_last==" ") {
  1533. sm_flashbar_inner_set_width += 6;
  1534. }
  1535. }
  1536. else {
  1537. var sm_flashbar_inner_set_width = 0;
  1538. }
  1539. if (document.getElementById('sm_flashbar_empty')) {
  1540. document.getElementById('sm_flashbar_keyword_container').style.left = "0px";
  1541. }
  1542. else {
  1543. document.getElementById('sm_flashbar_keyword_container').style.left = (-341 + (sm_flashbar_inner_set_width+342))+"px";
  1544. }
  1545. window.SM_FLASHBAR_PUSH = document.getElementById('sm_flashbar_keyword_container').style.left;
  1546. window.SM_FLASHBAR_BUSY = false;
  1547. }
  1548.  
  1549. function sm_flashbar_type_error() {
  1550. if (window.SM_FLASHBAR_SELECTED==true&&window.SM_FLASHBAR_TYPE_ERROR==false) {
  1551. window.SM_FLASHBAR_TYPE_ERROR = true;
  1552. sm_element_add("sm_flashbar_pointer_red", 0);
  1553. setTimeout("sm_element_remove(\"sm_flashbar_pointer_red\", 12);", 1000);
  1554. setTimeout("window.SM_FLASHBAR_TYPE_ERROR = false;", 1200);
  1555. }
  1556. }
  1557.  
  1558. function sm_flashbar_pointer_manual(sm_with_space) {
  1559. sm_flashbar_pointer_push = document.getElementById('sm_flashbar_inner_set').offsetWidth;
  1560. if (sm_with_space==1) {
  1561. sm_flashbar_pointer_push += 6;
  1562. }
  1563. document.getElementById('sm_flashbar_pointer').style.marginLeft = (-345 + sm_flashbar_pointer_push)+"px";
  1564. document.getElementById('sm_flashbar_pointer_red').style.marginLeft = (-345 + sm_flashbar_pointer_push)+"px";
  1565. }
  1566.  
  1567. function sm_flashbar_mouseover() {
  1568. document.getElementById('sm_flashbar_main').style.cursor = 'text';
  1569. window.SM_FLASHBAR_HOVER = true;
  1570. }
  1571.  
  1572. function sm_flashbar_mouseout() {
  1573. window.SM_FLASHBAR_HOVER = false;
  1574. }
  1575.  
  1576. function sm_flashbar_select() {
  1577. document.getElementById('sm_flashbar_main').style.borderColor = "#ead9ff";
  1578. sm_element_add("sm_flashbar_box_undercast", 2, 70);
  1579. sm_element_add("sm_flashbar_box", 2);
  1580. sm_element_add("sm_flashbar_pointer", 2);
  1581. window.SM_FLASHBAR_SELECTED = true;
  1582. }
  1583.  
  1584. function sm_flashbar_unselect() {
  1585. document.getElementById('sm_flashbar_main').style.borderColor = "#666";
  1586. sm_element_remove("sm_flashbar_box_undercast", 2, 70);
  1587. sm_element_remove("sm_flashbar_box", 2);
  1588. sm_element_remove("sm_flashbar_pointer", 2);
  1589. sm_element_remove("sm_flashbar_pointer_red", 2);
  1590. window.SM_FLASHBAR_SELECTED = false;
  1591. window.SM_FLASHBAR_HOVER_SUB = false;
  1592. }
  1593.  
  1594. function sm_flashbar_activate() {
  1595. if (window.SM_FLASHBAR_BUILD!="") {
  1596. document.getElementById('sm_flashbar_main').innerHTML = sm_flashbar_build_process(window.SM_FLASHBAR_BUILD);
  1597. }
  1598. else {
  1599. document.getElementById('sm_flashbar_main').innerHTML = sm_flashbar_build_process("");
  1600. }
  1601. document.getElementById('sm_flashbar_main').style.color = "#000";
  1602. window.SM_FLASHBAR_STATUS = true;
  1603. }
  1604.  
  1605. function sm_flashbar_reset() {
  1606. if (window.SM_FLASHBAR_SELECTED==false) {
  1607. document.getElementById('sm_flashbar_main').innerHTML = "Add keywords here to make this summary more specific to a topic.";
  1608. document.getElementById('sm_flashbar_main').style.color = "#666";
  1609. window.SM_FLASHBAR_STATUS = false;
  1610. }
  1611. }
  1612.  
  1613. function sm_flashbar_initial() {
  1614. window.SM_FLASHBAR_BUSY = false;
  1615. window.SM_FLASHBAR_PUSH = "2px";
  1616. window.SM_FLASHBAR_NAV = 0;
  1617. window.SM_FLASHBAR_NAV_MAX = 0;
  1618. window.SM_FLASHBAR_NAV_MENU = false;
  1619. window.SM_FLASHBAR_TYPE_BLOCK = false;
  1620. window.SM_FLASHBAR_OUTER_RAW = false;
  1621. window.SM_FLASHBAR_OUTER_RAW_RAW = false;
  1622. window.SM_FLASHBAR_BUILD = "";
  1623. window.SM_FLASHBAR_HOVER = false;
  1624. window.SM_FLASHBAR_HOVER_SUB = false;
  1625. window.SM_FLASHBAR_SELECTED = false;
  1626. window.SM_FLASHBAR_STATUS = false;
  1627. window.SM_FLASHBAR_PURGE_BLOCK = false;
  1628. window.SM_FLASHBAR_TYPE_ERROR = false;
  1629. window.SM_FLASHBAR_OUTER_MATCH = false;
  1630. window.SM_FLASHBAR_LIST_BLOCK = false;
  1631. window.SM_FLASHBAR_DOWN_STORE = false;
  1632. window.SM_FLASHBAR_UP_STORE = false;
  1633. sm_flashbar_reset();
  1634. }
  1635.  
  1636. function sm_flashbar_global() {
  1637. if (window.SM_FLASHBAR_LIST_BLOCK==false&&window.SM_FLASHBAR_HOVER==true&&window.SM_FLASHBAR_SELECTED==false&&window.SM_FLASHBAR_HOVER_SUB==false) {
  1638. sm_flashbar_select();
  1639. sm_flashbar_activate();
  1640. setTimeout("document.getElementById('sm_flashbar_key_input').focus()", 1);
  1641. }
  1642. else if (window.SM_FLASHBAR_LIST_BLOCK==false&&window.SM_FLASHBAR_HOVER==false&&window.SM_FLASHBAR_HOVER_SUB==false) {
  1643. sm_flashbar_unselect();
  1644. if (window.SM_FLASHBAR_BUILD=="") {
  1645. sm_flashbar_reset();
  1646. }
  1647. document.getElementById('sm_flashbar_key_input').blur();
  1648. }
  1649. else if (window.SM_FLASHBAR_LIST_BLOCK==false&&window.SM_FLASHBAR_HOVER==true) {
  1650. setTimeout("document.getElementById('sm_flashbar_key_input').focus()", 1);
  1651. }
  1652. window.SM_FLASHBAR_LIST_BLOCK = false;
  1653. }
  1654.  
  1655. function sm_load_complete() {
  1656. window.SM_LOAD_MAIN = false;
  1657. }
  1658.  
  1659. function sm_load_add_delay_complete() {
  1660. window.SM_LOAD_DELAY_EXTRA = false;
  1661. }
  1662.  
  1663. function sm_load_add_delay(sm_initial) {
  1664. if (window.SM_LOAD_HTTP==true) {
  1665. window.SM_LOAD_SIDE_STATE = true;
  1666. window.SM_LOAD_DELAY_EXTRA = true;
  1667. if (window.SM_FLASHBAR_SELECTED==true) {
  1668. sm_flashbar_unselect();
  1669. }
  1670. sm_scroll_enable(1);
  1671. if (sm_initial==0) {
  1672. setTimeout("sm_heat_map_remove()", 100);
  1673. setTimeout("document.getElementById(\"sm_secondary_upper_bar\").style.zIndex = \"-10\";", 10);
  1674. setTimeout("document.getElementById(\"sm_lower_container\").style.zIndex = \"-10\";", 10);
  1675. if (window.SM_SPECIFY_TOPIC_STATE>0) {
  1676. setTimeout("sm_specify_topic_remove()", 100);
  1677. setTimeout("sm_slide_d(\"sm_secondary_upper_bar\", -1, 35, 1, 8, 3, 1);", 240);
  1678. setTimeout("sm_slide_e(\"sm_lower_container\", -1, -50, -1, 8, 3, 1);", 240);
  1679. }
  1680. else {
  1681. setTimeout("sm_slide_d(\"sm_secondary_upper_bar\", -1, 35, 1, 8, 3, 1);", 100);
  1682. setTimeout("sm_slide_e(\"sm_lower_container\", -1, -35, -1, 8, 3, 1);", 100);
  1683. }
  1684. setTimeout("sm_element_remove(\"sm_secondary_inner_interface\", 2);", 200);
  1685. setTimeout("sm_element_remove(\"sm_secondary_text_style\", 2);", 200);
  1686. setTimeout("sm_element_add(\"sm_secondary_interface\", 2);", 200);
  1687. setTimeout("sm_load_shade_pulse();", 300);
  1688. setTimeout("sm_load_add_delay_complete()", 310);
  1689. window.SM_LOAD_SHADE_CONTINUE = true;
  1690. }
  1691. }
  1692. }
  1693.  
  1694. function sm_load_add(sm_initial) {
  1695. window.SM_LOAD_MAIN = true;
  1696. if (sm_initial==1) {
  1697. window.SM_LOAD_SHADE_CONTINUE = true;
  1698. sm_load_shade_pulse();
  1699. }
  1700. window.SM_LOAD_DELAY_EXTRA = false;
  1701. setTimeout("sm_load_add_delay("+sm_initial+")", 800);
  1702. document.getElementById("sm_secondary_upper_bar").style.zIndex = "-10";
  1703. document.getElementById("sm_lower_container").style.zIndex = "-10";
  1704. setTimeout("sm_load_complete()", 200);
  1705. }
  1706.  
  1707. function sm_load_remove_wait(sm_append, sm_initial) {
  1708. if (window.SM_LOAD_MAIN==true) {
  1709. setTimeout("sm_load_remove_wait("+sm_append+", "+sm_initial+")", 10);
  1710. }
  1711. else {
  1712. if (window.SM_LOAD_DELAY_EXTRA==true) {
  1713. window.SM_LOAD_DELAY_EXTRA = false;
  1714. setTimeout("sm_load_remove("+sm_append+", "+sm_initial+");", 300);
  1715. }
  1716. else {
  1717. sm_load_remove(sm_append, sm_initial);
  1718. }
  1719. }
  1720. }
  1721.  
  1722. function sm_load_remove(sm_append, sm_initial) {
  1723. var sm_title = sm_stripslashes(window.SM_BATON_TITLE);
  1724. var sm_output = sm_stripslashes(window.SM_BATON_OUTPUT);
  1725. delete window.SM_BATON_TITLE;
  1726. delete window.SM_BATON_OUTPUT;
  1727. if (sm_append==1) {
  1728. if (2==2) {
  1729. document.getElementById('sm_title_container').innerHTML = sm_title;
  1730. document.title = sm_title;
  1731. }
  1732. document.getElementById("sm_container_output").innerHTML = sm_output;
  1733. }
  1734. sm_element_snap_add("sm_secondary_interface");
  1735. window.SM_LOAD_SHADE_CONTINUE = false;
  1736. sm_element_snap_remove("sm_load_shade");
  1737. sm_element_snap_add("sm_secondary_upper_bar");
  1738. sm_element_snap_add("sm_flashbar_container");
  1739. sm_element_snap_add("sm_lower_container");
  1740. if (window.SM_LOAD_SIDE_STATE==true) {
  1741. sm_slide_d("sm_secondary_upper_bar", 35, -1, -1, 8, 3, 1);
  1742. sm_slide_e("sm_lower_container", -35, -1, 1, 8, 3, 1);
  1743. }
  1744. else {
  1745. document.getElementById('sm_secondary_upper_bar').style.top = "-1px";
  1746. document.getElementById('sm_lower_container').style.top = "1px";
  1747. }
  1748. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  1749. var sm_quick_transitions_reduce = 690;
  1750. }
  1751. else {
  1752. var sm_quick_transitions_reduce = 0;
  1753. }
  1754. if ((window.SM_LOAD_SIDE_STATE==true&&window.SM_SPECIFY_TOPIC_STATE>0)||(sm_initial==1&&window.SM_SPECIFY_TOPIC_STATE>0)) {
  1755. setTimeout("sm_specify_topic_add()", 700-sm_quick_transitions_reduce);
  1756. }
  1757. else if (sm_initial==1&&window.SM_KEYWORD_ARRAY.length!=0) {
  1758. setTimeout("sm_specify_topic_indeterminate();", 700-sm_quick_transitions_reduce);
  1759. }
  1760. if (window.SM_LOAD_SIDE_STATE = true) {
  1761. window.SM_LOAD_SIDE_STATE = false;
  1762. }
  1763. sm_element_add("sm_secondary_inner_interface", 2);
  1764. sm_element_add("sm_secondary_text_style", 2);
  1765. sm_flash_purge();
  1766. if (window.SM_VIEW_FIXED==false) {
  1767. setTimeout("sm_scroll_disable(1);", 10);
  1768. }
  1769. else {
  1770. document.getElementById('sm_secondary_inner_interface').style.overflow = "auto";
  1771. }
  1772. setTimeout("document.getElementById(\"sm_secondary_upper_bar\").style.zIndex = \"10\";", 800-sm_quick_transitions_reduce);
  1773. setTimeout("document.getElementById(\"sm_lower_container\").style.zIndex = \"10\";", 800-sm_quick_transitions_reduce);
  1774. }
  1775.  
  1776. function sm_load_shade_pulse() {
  1777. sm_load_shade_execute("document.getElementById(\"sm_load_shade\").style.top = \"-15px\";", 100);
  1778. sm_load_shade_execute("sm_element_add(\"sm_load_shade\", 2);", 100);
  1779. sm_load_shade_execute("sm_load_shade_plus()", 200);
  1780. }
  1781.  
  1782. function sm_load_shade_plus() {
  1783. if (window.SM_LOAD_SHADE_CONTINUE==true) {
  1784. sm_slide_c("sm_load_shade", 0, -14, 258, 1, 60, 7, 1);
  1785. sm_load_shade_pause();
  1786. }
  1787. else {
  1788. sm_element_snap_remove("sm_load_shade");
  1789. }
  1790. }
  1791.  
  1792. function sm_load_shade_pause() {
  1793. if (window.SM_SLIDE_ELEMENT_C==null) {
  1794. sm_element_remove("sm_load_shade", 2);
  1795. sm_load_shade_pulse();
  1796. }
  1797. else {
  1798. sm_load_shade_execute("sm_load_shade_pause()", 20)
  1799. }
  1800. }
  1801.  
  1802. function sm_load_shade_execute(sm_execute, sm_delay) {
  1803. if (window.SM_LOAD_SHADE_CONTINUE==true) {
  1804. setTimeout(sm_execute, sm_delay);
  1805. }
  1806. else {
  1807. sm_element_remove("sm_load_shade", 0);
  1808. }
  1809. }
  1810.  
  1811. function sm_input_out() {
  1812. if (window.SM_INPUT_OUT==false) {
  1813. window.SM_INPUT_OUT = true;
  1814. sm_singular_method_check();
  1815. sm_element_add("sm_input_clear", 2);
  1816. sm_slide_b("sm_input_clear", -260, -280, -1, 8, 3, 0);
  1817. }
  1818. }
  1819.  
  1820. function sm_input_in() {
  1821. if (window.SM_INPUT_OUT==true) {
  1822. window.SM_INPUT_OUT = false;
  1823. sm_singular_method_check();
  1824. sm_element_remove("sm_input_clear", 2);
  1825. sm_slide_b("sm_input_clear", -280, -260, 1, 8, 3, 0);
  1826. }
  1827. }
  1828.  
  1829. function sm_input_clear_execute() {
  1830. document.getElementById('sm_input').value = "";
  1831. sm_input_alone();
  1832. sm_input_in();
  1833. }
  1834.  
  1835. function sm_force_url_out() {
  1836. if (window.SM_FORCE_URL_OUT==false) {
  1837. window.SM_FORCE_URL_OUT = true;
  1838. sm_singular_method_check();
  1839. sm_element_add("sm_force_url_follow", 2);
  1840. sm_slide_a("sm_force_url_follow", 260, 280, 1, 8, 3, 0);
  1841. sm_element_add("sm_force_url_clear", 2);
  1842. sm_slide_b("sm_force_url_clear", -260, -280, -1, 8, 3, 0);
  1843. }
  1844. }
  1845.  
  1846. function sm_force_url_in() {
  1847. if (window.SM_FORCE_URL_OUT==true) {
  1848. window.SM_FORCE_URL_OUT = false;
  1849. sm_singular_method_check();
  1850. sm_element_remove("sm_force_url_follow", 2);
  1851. sm_slide_a("sm_force_url_follow", 280, 260, -1, 8, 3, 0);
  1852. sm_element_remove("sm_force_url_clear", 2);
  1853. sm_slide_b("sm_force_url_clear", -280, -260, 1, 8, 3, 0);
  1854. }
  1855. }
  1856.  
  1857. function sm_force_url_clear_execute() {
  1858. document.getElementById('sm_force_url').value = "";
  1859. sm_force_url_alone();
  1860. sm_force_url_in();
  1861. }
  1862.  
  1863. function sm_force_url_follow_execute() {
  1864. var sm_follow_url = document.getElementById('sm_force_url').value;
  1865. if (sm_follow_url.substring(0, 7)!="http://"&&sm_follow_url.substring(0, 8)!="https://") {
  1866. sm_follow_url = "http://"+sm_follow_url;
  1867. }
  1868. window.location = sm_follow_url;
  1869. }
  1870.  
  1871. function sm_singular_method_check() {
  1872. var sm_counter = 0;
  1873. if (window.SM_INPUT_OUT==true) {
  1874. sm_counter++;
  1875. }
  1876. if (window.SM_FORCE_URL_OUT==true) {
  1877. sm_counter++;
  1878. }
  1879. if (document.getElementById('sm_force_upload_file').value!="sm_null") {
  1880. sm_counter++;
  1881. }
  1882. var sm_submit_disabled = null;
  1883. if (sm_counter>1) {
  1884. sm_errorbar_message("PLEASE USE ONLY ONE METHOD OF INPUT", "primary");
  1885. sm_submit_disabled = true;
  1886. }
  1887. else if (window.SM_ERRORBAR_REMOVE_BLOCK_PRIMARY==false) {
  1888. sm_errorbar_clear("primary");
  1889. sm_submit_disabled = false;
  1890. }
  1891. else {
  1892. window.SM_ERRORBAR_REMOVE_BLOCK_PRIMARY = false;
  1893. }
  1894.  
  1895. if (document.getElementById('sm_count_primary').value>40) {
  1896. sm_submit_disabled = true;
  1897. }
  1898. if (document.getElementById('sm_count_primary').value==0) {
  1899. sm_submit_disabled = true;
  1900. }
  1901. if (document.getElementById('sm_count_primary').value>40&&document.getElementById('sm_count_error_primary').style.display=="none") {
  1902. document.getElementById('sm_count_error_primary').innerHTML = window.SM_MAX_SENTENCE;
  1903. sm_element_add("sm_count_error_primary", 2);
  1904. }
  1905. if (document.getElementById('sm_count_primary').value==0&&document.getElementById('sm_count_error_primary').style.display=="none") {
  1906. document.getElementById('sm_count_error_primary').innerHTML = window.SM_MIN_SENTENCE;
  1907. sm_element_add("sm_count_error_primary", 2);
  1908. }
  1909. if (document.getElementById('sm_count_primary').value<=40&&document.getElementById('sm_count_primary').value>0&&document.getElementById('sm_count_error_primary').style.display=="block") {
  1910. sm_element_remove("sm_count_error_primary", 2);
  1911. }
  1912. document.getElementById('sm_submit').disabled = sm_submit_disabled;
  1913. }
  1914.  
  1915. function sm_errorbar_clear(sm_errorbar) {
  1916. sm_element_remove('sm_errorbar_'+sm_errorbar, 5);
  1917. }
  1918.  
  1919. function sm_errorbar_message(sm_message, sm_errorbar) {
  1920. 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>";
  1921. sm_element_add('sm_errorbar_'+sm_errorbar, 10);
  1922. }
  1923.  
  1924. function sm_upload_initiate() {
  1925. var uploader = new qq.FileUploader({
  1926. element: document.getElementById('sm_upload_instance'),
  1927. action: 'https://smmry.com/sm_upload_process.php',
  1928. debug: false
  1929. });
  1930. }
  1931.  
  1932. function sm_save_process(sm_post_toggle) {
  1933. if (window.SM_USER_ARRAY==false) {
  1934. return false;
  1935. }
  1936. if (sm_post_toggle==1) {
  1937. window.SM_POST_PART = false;
  1938. if (window.SM_USER_ARRAY==true) {
  1939. window.SM_POST_USER_ID = window.SM_USER_ID;
  1940. }
  1941. document.getElementById('sm_post_part_3').style.display = "none";
  1942. document.getElementById('sm_post_part_2').style.display = "none";
  1943. document.getElementById('sm_post_part_1').style.display = "inline";
  1944. document.getElementById('sm_share_summary').disabled = true;
  1945. document.getElementById('sm_post_public_check_enable').checked = false;
  1946. document.getElementById('sm_post_public_check_disable').checked = false;
  1947. }
  1948. else {
  1949. window.SM_POST_PART = true;
  1950. document.getElementById('sm_post_part_3').style.display = "none";
  1951. document.getElementById('sm_post_part_2').style.display = "inline";
  1952. document.getElementById('sm_post_part_1').style.display = "none";
  1953. document.getElementById('sm_share_summary').disabled = true;
  1954. }
  1955. 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);
  1956. }
  1957.  
  1958. function sm_save_public_update() {
  1959. if (document.getElementById('sm_post_public_check_enable').checked==true) {
  1960. var sm_post_public = 1;
  1961. document.getElementById('sm_share_summary').disabled = false;
  1962. document.getElementById('sm_post_public_check_disable').checked = true;
  1963. }
  1964. else {
  1965. var sm_post_public = 0;
  1966. document.getElementById('sm_share_summary').disabled = true;
  1967. document.getElementById('sm_post_public_check_disable').checked = false;
  1968. if (document.getElementById('sm_share_container').style.display!="none") {
  1969. sm_share_summary_remove();
  1970. }
  1971. }
  1972. 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);
  1973. }
  1974.  
  1975. function sm_rate_summary_info_add(sm_info_id, sm_object) {
  1976. var sm_info_content = "";
  1977. if (sm_info_id=="sm_informativeness_score") {
  1978. sm_info_content = "How well does this summary provide relevant descriptive information?"
  1979. }
  1980. else if (sm_info_id=="sm_pithiness_score") {
  1981. sm_info_content = "How dense and efficient is this summary?"
  1982. }
  1983. else if (sm_info_id=="sm_clarity_score") {
  1984. sm_info_content = "How clear and easy to understand is this summary?"
  1985. }
  1986. else if (sm_info_id=="sm_error_score") {
  1987. sm_info_content = "Does this summary contain any mistakes/faults?<br />e.g. Missing punctuation."
  1988. }
  1989. document.getElementById('sm_rate_summary_info_container').innerHTML = sm_info_content;
  1990. document.getElementById('sm_rate_summary_info_container').style.top = (sm_object_position_top(sm_object)-80)+"px";
  1991. document.getElementById('sm_rate_summary_info_container').style.left = (sm_object_position_left(sm_object)-150)+"px";
  1992. sm_element_add("sm_rate_summary_info_container", 3);
  1993. }
  1994.  
  1995. function sm_rate_summary_info_remove() {
  1996. sm_element_remove("sm_rate_summary_info_container", 3);
  1997. }
  1998.  
  1999. function sm_rate_summary_clear(sm_object) {
  2000. sm_object.style.outlineWidth = "0px";
  2001. if (sm_object.value.length!=0&&parseFloat(sm_object.value)==sm_object.value&&sm_object.value>5) {
  2002. sm_object.value = 5;
  2003. }
  2004. }
  2005.  
  2006. function sm_rate_summary_process() {
  2007. var sm_rate_pass = true;
  2008. if (document.getElementById('sm_informativeness_score').value.length==0) {
  2009. document.getElementById('sm_informativeness_score').style.outlineWidth = "4px";
  2010. sm_rate_pass = false;
  2011. }
  2012. else {
  2013. document.getElementById('sm_informativeness_score').style.outlineWidth = "0px";
  2014. }
  2015. if (document.getElementById('sm_pithiness_score').value.length==0) {
  2016. document.getElementById('sm_pithiness_score').style.outlineWidth = "4px";
  2017. sm_rate_pass = false;
  2018. }
  2019. else {
  2020. document.getElementById('sm_clarity_score').style.outlineWidth = "0px";
  2021. }
  2022. if (document.getElementById('sm_clarity_score').value.length==0) {
  2023. document.getElementById('sm_clarity_score').style.outlineWidth = "4px";
  2024. sm_rate_pass = false;
  2025. }
  2026. else {
  2027. document.getElementById('sm_clarity_score').style.outlineWidth = "0px";
  2028. }
  2029. if (sm_rate_pass==true) {
  2030. var sm_parameters = "SM_CHAR_AMPSM_LENGTH="+document.getElementById('sm_count_secondary').value;
  2031. if (document.getElementById('sm_check_question_avoid_visual').checked==true) {
  2032. sm_parameters += "SM_CHAR_AMPSM_QUESTION_AVOID";
  2033. }
  2034. if (document.getElementById('sm_check_exclamation_avoid_visual').checked==true) {
  2035. sm_parameters += "SM_CHAR_AMPSM_EXLAMATION_AVOID";
  2036. }
  2037. if (document.getElementById('sm_check_quote_avoid_visual').checked==true) {
  2038. sm_parameters += "SM_CHAR_AMPSM_QUOTE_AVOID";
  2039. }
  2040. if (document.getElementById('sm_check_heat_map_visual').checked==true) {
  2041. sm_parameters += "SM_CHAR_AMPSM_HEAT_MAP";
  2042. }
  2043. sm_element_snap_remove('sm_rate_container');
  2044. sm_element_snap_add('sm_feedback_container');
  2045. 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);
  2046. setTimeout("sm_element_remove(\"sm_feedback_container\", 3);", 2500);
  2047. setTimeout("sm_element_add(\"sm_lower_container\", 3);", 2720);
  2048. }
  2049. }
  2050.  
  2051. function sm_rate_summary_initiate() {
  2052. sm_element_remove("sm_lower_container", 3);
  2053. setTimeout("sm_element_add(\"sm_rate_container\", 3);", 220);
  2054. }
  2055.  
  2056. function sm_rate_summary_remove() {
  2057. sm_element_remove("sm_rate_container", 3);
  2058. setTimeout("sm_element_add(\"sm_lower_container\", 3);", 220);
  2059. 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);
  2060. }
  2061.  
  2062. function sm_share_connect_load() {
  2063. if (document.getElementById('sm_share_connect').src.length>0) {
  2064. document.getElementById('sm_share_connect_load_element').style.display = "none";
  2065. document.getElementById('sm_share_connect').style.display = "block";
  2066. }
  2067. }
  2068.  
  2069. function sm_share_summary_initiate() {
  2070. sm_element_remove("sm_lower_container", 3);
  2071. setTimeout("sm_element_add(\"sm_share_container\", 3);", 220);
  2072. 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);
  2073. }
  2074.  
  2075. function sm_share_summary_remove() {
  2076. sm_element_remove("sm_share_container", 3);
  2077. setTimeout("sm_element_add(\"sm_lower_container\", 3);", 220);
  2078. setTimeout("sm_share_original_reset();", 320);
  2079. setTimeout("document.getElementById('sm_share_check_original').checked = false;", 320);
  2080. setTimeout("document.getElementById('sm_share_connect_load_element').style.display = \"block\";", 320);
  2081. setTimeout("document.getElementById('sm_share_connect').style.display = \"none\";", 320);
  2082. }
  2083.  
  2084. function sm_share_original_reset() {
  2085. var sm_share_connect = document.getElementById('sm_share_connect');
  2086. var sm_share_connect_content = sm_share_connect.contentDocument || sm_share_connect.contentWindow.document;
  2087. sm_share_connect_content.getElementById('sm_share_container_main').style.display = "block";
  2088. sm_share_connect_content.getElementById('sm_share_container_original').style.display = "none";
  2089. }
  2090.  
  2091. function sm_share_original_toggle() {
  2092. var sm_share_connect = document.getElementById('sm_share_connect');
  2093. var sm_share_connect_content = sm_share_connect.contentDocument || sm_share_connect.contentWindow.document;
  2094. if (sm_share_connect_content.getElementById('sm_share_container_main').style.display!="none") {
  2095. sm_share_connect_content.getElementById('sm_share_container_main').style.display = "none";
  2096. sm_share_connect_content.getElementById('sm_share_container_original').style.display = "block";
  2097. document.getElementById('sm_share_check_original').checked = true;
  2098. }
  2099. else {
  2100. sm_share_connect_content.getElementById('sm_share_container_main').style.display = "block";
  2101. sm_share_connect_content.getElementById('sm_share_container_original').style.display = "none";
  2102. document.getElementById('sm_share_check_original').checked = false;
  2103. }
  2104. }
  2105.  
  2106. function sm_settings_process() {
  2107. if (document.getElementById('sm_primary_interface').style.display=="none") {
  2108. var sm_postion_top = sm_object_position_top(document.getElementById('sm_settings_button_secondary'));
  2109. document.getElementById("sm_settings_float").style.marginLeft = "-350px";
  2110. }
  2111. else {
  2112. var sm_postion_top = sm_object_position_top(document.getElementById('sm_settings_button_primary'));
  2113. document.getElementById("sm_settings_float").style.marginLeft = "-208px";
  2114. }
  2115. document.getElementById("sm_settings_float").style.left = "-220px";
  2116. document.getElementById("sm_settings_float").style.display = "block";
  2117. var sm_settings_height = document.getElementById("sm_settings_float").offsetHeight;
  2118. document.getElementById("sm_settings_float").style.display = "none";
  2119. document.getElementById("sm_settings_float").style.left = "50%";
  2120. document.getElementById("sm_settings_float").style.top = (sm_postion_top-sm_settings_height+28)+"px";
  2121. if (document.getElementById('sm_primary_interface').style.display=="none") {
  2122. sm_element_remove("sm_settings_button_secondary", 2);
  2123. }
  2124. else {
  2125. sm_element_remove("sm_settings_button_primary", 2);
  2126. }
  2127. sm_element_add("sm_settings_float", 2);
  2128. }
  2129.  
  2130. function sm_settings_remove() {
  2131. sm_element_remove("sm_settings_float", 2);
  2132. if (document.getElementById('sm_primary_interface').style.display=="none") {
  2133. sm_element_add("sm_settings_button_secondary", 2);
  2134. }
  2135. else {
  2136. sm_element_add("sm_settings_button_primary", 2);
  2137. }
  2138. }
  2139.  
  2140. function sm_settings_populate_primary() {
  2141. if (document.getElementById('sm_primary_interface').style.display!="none"&&typeof window.SM_USER_SETTINGS_SAVE!="undefined") {
  2142. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_QUESTION_AVOID/)!=-1) {
  2143. document.getElementById('sm_check_question_avoid_visual').checked = true;
  2144. }
  2145. else {
  2146. document.getElementById('sm_check_question_avoid_visual').checked = false;
  2147. }
  2148. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_EXCLAMATION_AVOID/)!=-1) {
  2149. document.getElementById('sm_check_exclamation_avoid_visual').checked = true;
  2150. }
  2151. else {
  2152. document.getElementById('sm_check_exclamation_avoid_visual').checked = false;
  2153. }
  2154. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_QUOTE_AVOID/)!=-1) {
  2155. document.getElementById('sm_check_quote_avoid_visual').checked = true;
  2156. }
  2157. else {
  2158. document.getElementById('sm_check_quote_avoid_visual').checked = false;
  2159. }
  2160. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_HEAT_MAP/)!=-1) {
  2161. document.getElementById('sm_check_heat_map_visual').checked = true;
  2162. }
  2163. else {
  2164. document.getElementById('sm_check_heat_map_visual').checked = false;
  2165. }
  2166. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_QUICK_TRANSITIONS/)!=-1) {
  2167. document.getElementById('sm_check_quick_transitions_visual').checked = true;
  2168. }
  2169. else {
  2170. document.getElementById('sm_check_quick_transitions_visual').checked = false;
  2171. }
  2172. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_SPECIFY_TOPIC/)!=-1) {
  2173. document.getElementById('sm_check_specify_topic_visual').checked = true;
  2174. }
  2175. else {
  2176. document.getElementById('sm_check_specify_topic_visual').checked = false;
  2177. }
  2178. if (window.SM_USER_SETTINGS_SAVE.search(/&SM_STRICT_SCAN/)!=-1) {
  2179. document.getElementById('sm_flash_strict_check').checked = true;
  2180. }
  2181. else {
  2182. document.getElementById('sm_flash_strict_check').checked = false;
  2183. }
  2184. }
  2185. }
  2186.  
  2187. function sm_settings_save_fail() {
  2188. document.getElementById('sm_check_save_settings_visual').checked = false;
  2189. }
  2190.  
  2191. function sm_quick_transitions_update() {
  2192. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  2193. document.getElementById('sm_check_quick_transitions_visual').checked = true;
  2194. sm_http_connect("https://smmry.com/sm_quick_transitions.php?sm_quick_transitions_state=1");
  2195. }
  2196. else {
  2197. document.getElementById('sm_check_quick_transitions_visual').checked = false;
  2198. sm_http_connect("https://smmry.com/sm_quick_transitions.php?sm_quick_transitions_state=0");
  2199. }
  2200. }
  2201.  
  2202. function sm_quick_transitions_toggle() {
  2203. if (window.SM_QUICK_TRANSITIONS_STATE==true) {
  2204. window.SM_QUICK_TRANSITIONS_STATE = false;
  2205. }
  2206. else {
  2207. window.SM_QUICK_TRANSITIONS_STATE = true;
  2208. }
  2209. sm_quick_transitions_update();
  2210. sm_resummarize_process(1);
  2211. }
  2212.  
  2213. function sm_specify_topic_update() {
  2214. if (window.SM_SPECIFY_TOPIC_STATE==0) {
  2215. document.getElementById('sm_check_specify_topic_visual').checked = false;
  2216. sm_http_connect("https://smmry.com/sm_specify_topic.php?sm_specify_topic_state=0");
  2217. }
  2218. else if (window.SM_SPECIFY_TOPIC_STATE==1) {
  2219. document.getElementById('sm_check_specify_topic_visual').checked = true;
  2220. sm_http_connect("https://smmry.com/sm_specify_topic.php?sm_specify_topic_state=1");
  2221. }
  2222. else if (window.SM_SPECIFY_TOPIC_STATE==2) {
  2223. document.getElementById('sm_check_specify_topic_visual').indeterminate = true;
  2224. sm_http_connect("https://smmry.com/sm_specify_topic.php?sm_specify_topic_state=0");
  2225. }
  2226. }
  2227.  
  2228. function sm_specify_topic_indeterminate() {
  2229. if (window.SM_SPECIFY_TOPIC_STATE!=0&&window.SM_SPECIFY_TOPIC_STATE!=1) {
  2230. return false;
  2231. }
  2232. if (window.SM_SPECIFY_TOPIC_STATE==0) {
  2233. sm_specify_topic_add();
  2234. }
  2235. window.SM_SPECIFY_TOPIC_STATE = 2;
  2236. sm_specify_topic_update();
  2237. }
  2238.  
  2239. function sm_specify_topic_add() {
  2240. if (window.SM_SPECIFY_TOPIC_BLOCK==true) {
  2241. return false;
  2242. }
  2243. window.SM_SPECIFY_TOPIC_BLOCK = true;
  2244. sm_slide_a("sm_container_secondary", -24, 0, 1, 8, 3, 1);
  2245. 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);
  2246. 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);
  2247. setTimeout("document.getElementById(\"sm_flashbar_container\").style.zIndex = \"10\"", 200);
  2248. setTimeout("window.SM_SPECIFY_TOPIC_BLOCK = false;", 210);
  2249. }
  2250.  
  2251. function sm_specify_topic_remove() {
  2252. if (window.SM_SPECIFY_TOPIC_BLOCK==true) {
  2253. return false;
  2254. }
  2255. window.SM_SPECIFY_TOPIC_BLOCK = true;
  2256. document.getElementById("sm_flashbar_container").style.zIndex = "-10";
  2257. sm_slide_a("sm_container_secondary", 0, -24, -1, 8, 3, 1);
  2258. 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);
  2259. 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);
  2260. setTimeout("window.SM_SPECIFY_TOPIC_BLOCK = false;", 210);
  2261. }
  2262.  
  2263. function sm_specify_topic_toggle() {
  2264. if (window.SM_SPECIFY_TOPIC_BLOCK==true) {
  2265. sm_specify_topic_update();
  2266. return false;
  2267. }
  2268. if (window.SM_SPECIFY_TOPIC_STATE==2) {
  2269. window.SM_SPECIFY_TOPIC_STATE = 1;
  2270. }
  2271. else if (window.SM_SPECIFY_TOPIC_STATE==0) {
  2272. window.SM_SPECIFY_TOPIC_STATE = 1;
  2273. sm_specify_topic_add();
  2274. sm_resummarize_process(1);
  2275. }
  2276. else {
  2277. window.SM_SPECIFY_TOPIC_STATE = 0;
  2278. sm_specify_topic_remove();
  2279. sm_flash_clear();
  2280. }
  2281. sm_specify_topic_update();
  2282. }
  2283.  
  2284. function sm_summarize() {
  2285. var sm_current_input = document.getElementById("sm_input").value;
  2286. var sm_interlude_original = sm_current_input.search(/SMMRY summarizes text to save you time.\n\nPaste a/);
  2287. var sm_current_input = document.getElementById("sm_force_url").value;
  2288. var sm_interlude_url = sm_current_input.search(/Or paste a URL here./);
  2289. if (sm_interlude_original!=-1&&sm_interlude_url!=-1&&document.getElementById('sm_force_upload_file').value=="sm_null") {
  2290. sm_errorbar_message("YOU MUST FIRST INPUT SOMETHING", "primary");
  2291. } else {
  2292. document.sm_container_primary.submit();
  2293. }
  2294. }
  2295.  
  2296. function sm_referral_run() {
  2297. var sm_hash = window.location.hash;
  2298. var sm_referral_key;
  2299. if (sm_hash.search("&SM_REFERRAL=")!=-1) {
  2300. var sm_hash_split = sm_hash.split("&SM_REFERRAL=");
  2301. sm_referral_key = sm_hash_split[1].substr(0, 6);
  2302. sm_http_connect("https://smmry.com/sm_referral_receive.php?sm_referral_key="+sm_referral_key);
  2303. window.location.hash = sm_hash.replace("&SM_REFERRAL="+sm_referral_key, "");
  2304. }
  2305. }
  2306.  
  2307. function sm_initial() {
  2308. sm_referral_run();
  2309. sm_common_script_initial();
  2310. sm_user_run();
  2311. sm_user_array_populate();
  2312. sm_settings_populate_primary();
  2313. window.SM_SIGNATURE = "smmry.com";
  2314. window.SM_INPUT_OUT = false;
  2315. window.SM_FORCE_URL_OUT = false;
  2316. window.SM_MAX_SENTENCE = "MAX IS 40";
  2317. window.SM_MIN_SENTENCE = "MIN IS 1";
  2318. window.SM_LOAD_SHADE_CONTINUE = false;
  2319. window.SM_LOAD_MAIN = false;
  2320. window.SM_LOAD_HTTP = false;
  2321. window.SM_LOAD_HTTP_SUB = false;
  2322. window.SM_LOAD_SIDE_STATE = false;
  2323. window.SM_RESUMMARIZE_COUNT_TIME = 0;
  2324. window.SM_RESUMMARIZE_REDUCTION_TIME = 0;
  2325. window.SM_RESUMMARIZE_CHARACTER_TIME = 0;
  2326. window.SM_RESUMMARIZE_PROCESS_TIME = 0;
  2327. window.SM_PARAMETER_EXTRA_COMPOSITE = null;
  2328. window.SM_PARAMETER_EXTRA_COMPOSITE_COMPARE = null;
  2329. window.SM_KEYWORD_ARRAY = new Array();
  2330. window.SM_FLASH_CURRENT_ARRAY = new Object();
  2331. window.SM_FLASH_RANK_ARRAY = new Array();
  2332. window.SM_FLASH_GROUP_ARRAY = new Object();
  2333. window.SM_FLASH_SHORT_ARRAY = new Object();
  2334. window.SM_FLASH_REVERSE_ARRAY = new Object();
  2335. window.SM_FLASH_COLOUR_ARRAY = new Object();
  2336. window.SM_FLASH_PROCESS_BLOCK = false;
  2337. window.SM_SPECIFY_TOPIC_STATE = 0;
  2338. window.SM_SPECIFY_TOPIC_BLOCK = false;
  2339. window.SM_ERRORBAR_REMOVE_BLOCK_PRIMARY = false;
  2340. window.SM_SETTINGS_ADVANCED_STATE = false;
  2341. window.SM_SETTINGS_SAVE_STATE = false;
  2342. window.SM_REDUCTION_REQUEST = false;
  2343. window.SM_CHARACTER_REQUEST = false;
  2344. window.SM_REDUCTION_FOCUS = false;
  2345. window.SM_CHARACTER_FOCUS = false;
  2346. window.SM_COUNT_FOCUS = false;
  2347. window.SM_QUICK_TRANSITIONS_STATE = false;
  2348. window.SM_POST_USER_ID = false;
  2349. window.SM_POST_ARRAY = false;
  2350. window.SM_POST_OWN = false;
  2351. window.SM_POST_PART = true;
  2352. window.SM_VIEW_FIXED = false;
  2353. sm_force_url_out();
  2354. sm_http_protocol(1);
  2355. }
  2356.  
  2357. window.onclick = function() {
  2358. sm_flashbar_global();
  2359. }
  2360. window.onload = function() {
  2361. sm_initial();
  2362. sm_flashbar_initial();
  2363. }
  2364.  
  2365. PLEASE ENABLE JAVASCRIPT FOR THIS SITE TO WORKSummarize my text in sentences.SMMRY summarizes text to save you time.
  2366.  
  2367. Paste an article, text or essay in this box and hit summarize; we'll return a shortened copy for you to read.
  2368.  
  2369. You can also summarize PDF and TXT documents by uploading a file or summarize online articles and webpages by pasting the URL below...This is a sentence summary of http://money.cnn.com/2018/04/01/news/spor...Strict Scan [?]Reduced By: % Characters: RELEVANCE /5 EFFICIENCY /5 CLARITY /5 ERROR(S) Thank you for your feedback.SETTINGSAvoid Questions [?]Avoid Exclamations [?]Avoid Quotations [?]Heat Map [?]Quick Transitions [?]Specify Topic [?]Remember Settings [?]You cannot select more than 5 keywordsNot a significant keywordLOADING...SUMMARIZE|ABOUT|API|PARTNER|BOOKMARK WIDGET|CONTACTREGISTER|LOGIN© 2018 Smmry.com
  2370. choose_page.js:32
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement