Author </div> </div><div style='height:5px'></div> <script> function review_init() { if(XUNAME) { $('#review_name').hide(); $('#review_postbutton').html('Post Review as ' + XUNAME); $('.login_items').hide(); $('#alert_subs').show(); } else { $('#review_name').show(); //$('#review_name').html("<input type=text name='name' placeholder='Name:'>"); $('.login_items').show(); $('#alert_subs').hide(); } } //call back function login_success_default() { //$('#name_login').html(render_login(XUNAME)); //focus on review $('#review_review').focus(); //you have now logged in xtoast("You have logged-in as "+XUNAME+'.'); //close all open dialogs //$('#please_login').modal('hide'); } function login_success() { login_success_default(); review_init(); } function self_login(target) { xwindow('https://www.fanfiction.net/api/login_state_proxy.php?src=popup&target='+target,450,450); } function post_q() { if(!XUNAME) { please_login(); return; } if($('#q_follow_author').prop('checked') == 0 && $('#q_follow_story').prop('checked') == 0 && $('#q_fav_author').prop('checked') == 0 && $('#q_fav_story').prop('checked') ==0) { xtoast('Please select at least one follow or favorite action'); return; } $('#q_working').toggle(); $.post('/api/ajax_subs.php', { storyid: storyid, userid: userid, authoralert: $('#q_follow_author').prop('checked') ? 1 : 0, storyalert: $('#q_follow_story').prop('checked') ? 1 : 0, favstory: $('#q_fav_story').prop('checked') ? 1 : 0, favauthor: $('#q_fav_author').prop('checked') ? 1 : 0 }, function(data) { //console.log(data); //alert(data); if(data.error) { $('#q_working').toggle(); xtoast("We are unable to process your request due to an network error. Please try again later."); } else { xtoast("We have successfully processed the following:" + data.payload_data,3500); $('#q_working').toggle(); $('#follow_area').modal('hide'); } }, 'json' ).error(function() { xtoast("We are unable to process your request due to an network error. Please try again later."); $('#q_working').toggle(); }); } function please_login() { xtoast("Please login or signup to access this feature."); } function post_review() { var review = $('#review_review').val(); var name = $('#review_name_value') ? $('#review_name_value').val() : ''; //make sure we don't submit default if(review == '') { xtoast("Please type up your review for this story."); return; } $('#review_postbutton').html("Posting. Please wait..."); $('#review_postbutton').prop('disabled',true); $.post('/api/ajax_review.php', { storyid: storyid, storytextid: storytextid, chapter: chapter, authoralert: $('#review_authoralert').prop('checked') ? 1 : 0, storyalert: $('#review_storyalert').prop('checked') ? 1 : 0, favstory: $('#review_favstory').prop('checked') ? 1 : 0, favauthor: $('#review_favauthor').prop('checked') ? 1 : 0, name: name, review: review }, function(data) { //console.log(data); //alert(data); if(data.error) { $('#review_postbutton').html('Post Review as'+XUNAME); $('#review_postbutton').prop('disabled', false); xtoast("We are unable to post your review due to the following reason:<br><br>" + data.error_msg); } else { xtoast("The author would like to thank you for your continued support. Your review has been posted.",3500); review_success(); } }, 'json' ).error(function() { xtoast("We are unable to process your review due to an network error. Please try again later."); $('#review_postbutton').html("Post Review as"+XUNAME); $('#review_postbutton').prop('disabled', false); }); } function review_success() { $('#review').hide(); $('#review_success').show(); //must clear textarea of auto-save would save old data $('#review_review').val(''); if(!$.storage) { $.storage = new $.store(); //console.log('new storage'); } $.storage.del('review:202125:1'); //console.log('del review:202125:1'); } function review_failure() { } $().ready(function() { review_init(); }); </script> <div id='review_success' style='display:none;width:500px;height:100px;clear:both;margin-right:auto;margin-left:auto;'> The author would like to thank you for your continued support. Your review has been posted. </div> <div id=review> <table border=0 padding=0 cellspacing=0 style='width:100%;'> <!-- min-width:500px;max-width:975px;clear:both;margin-right:auto;margin-left:auto;--> <tr> <td width=336 valign=top> <!-- startz --> <ins class="adsbygoogle" style="display:inline-block;width:336px;height:280px" data-ad-client="ca-pub-8698054525611092" data-ad-slot="8107878760"></ins> <script>(adsbygoogle = window.adsbygoogle || []).push({});</script> <!-- endz --> </td> <td width=10></td> <td valign=top> <div style='width:100%;max-width:700px;'> <table style='width:100%;'> <tr> <td colspan=2> <div id=review_name style=''> <!-- min-width:500px;max-width:975px; style='padding:0.5em;width:98%;' --> <input class='input-block-level' style='max-width:700px' type=text name='name' id='review_name_value' maxlength=16 placeholder="Name:" > <div style='height:4px'></div> </div> <textarea class='input-block-level' style='max-width:700px' rows=10 placeholder="Type your review here..." name=review id=review_review></textarea> </td> </tr> <tr> <td style='vertical-align:middle;'> <div id='alert_subs' class='hide xcontrast_txt'> Favorite : Story <input style='margin:-2px 0 0 0' type=checkbox name=favstory id=review_favstory> Author <input style='margin:-2px 0 0 0' type=checkbox name=favauthor id=review_favauthor>   Follow : Story <input style='margin:-2px 0 0 0' type=checkbox name=storyalert id=review_storyalert> Author <input style='margin:-2px 0 0 0' type=checkbox name=authoralert id=review_authoralert> </div> </td> <td align=right> <!-- Split button --> <div class='btn-group xreset-left'> <button type='button' class='btn icon-edit-1' onClick='post_review();' id=review_postbutton>Post Review</button> <button type='button' class='btn dropdown-toggle login_items' data-toggle='dropdown'> <span class='sr-only '>As</span> <span class='caret '></span> </button> <ul class='dropdown-menu' role='menu'> <li><a href='#' onclick="self_login('self');" class=xdrop_login>FanFiction</a></li> <li><a href='#' onclick="self_login('sister');" class=xdrop_login>FictionPress</a></li> <li><a href='#' onclick="self_login('google');" lass=xdrop_login>Google</a></li> <li><a href='#' onclick="self_login('facebook');" class=xdrop_login>Facebook</a></li> <li><a href='#' onclick="self_login('twitter');" class=xdrop_login>Twitter</a></li> <li><a href='#' onclick="self_login('amazon');" class=xdrop_login>Amazon</a></li> </ul> </div> </td> </tr> </table> </div> </td> </tr> </table> </div> <!-- <div id='please_login' class='modal hide fade'></div> --> <script src='//ff74.b-cdn.net/static/scripts/jquery.jstore_01_09_2012.js'></script> <script> $().ready(function(){ if(!$.storage) { $.storage = new $.store(); //init } var t_read = $.storage.get('review:202125:1'); if(t_read && t_read.length > 0 ) { //alert('recovered data' + t_read); var temp = $('textarea#review_review').val(); //NO SPACES .replace(/^\s+|\s+$/g,'') if(!temp || temp.length == 0 || temp == "Type your comments here.") { //alert('set good'); $('textarea#review_review').val(t_read); //console.log('got'+t_read); } } else { //alert('no data'); } var rTimer = setInterval(saveReview, 2000); //every 2s function saveReview() { var temp = $('textarea#review_review').val(); //make sure we don't save spaces .replace(/^\s+|\s+$/g,''); if(temp && temp.length > 0 && temp != "Type your comments here.") { $.storage.set('review:202125:1', temp); //console.log('set'+temp); } } }); </script> <div style='height:15px'></div> <div align=center class=lc-wrapper><div class=lc> <FORM name=myselect onsubmit='return false;'><TABLE style='min-width;400px;margin-left:auto;margin-right:auto;' cellpadding=4> <TR> <TD> <script> var storyid = 202125; var userid = 35856; var storytextid = storytextid=206071; var chapter = 1; var title = 'Author%27s+Introduction'; var logind = 'https://www.fanfiction.net'; function select_drop(sel_value) { var t; if (sel_value == 'abuse') { t = xwindow(logind+'/report.php?chapter='+chapter+'&storyid='+storyid+'&title='+title,560,510); } else if (sel_value == 'c2') { t = xwindow(logind+'/c2_addstory.php?action=add&storyid='+storyid,560,470); } } </SCRIPT> <div class='btn-group ' id='story_actions'> <div class='btn-group dropup'align=left> <button class='btn dropdown-toggle' data-toggle='dropdown'> <span >Actions</span> <span class='caret'></span> </button> <ul class='dropdown-menu' > <li><a onclick="select_drop('c2')">Add to Community</a></li> <li><a onclick="select_drop('abuse')">Report Abuse</a></li> </ul> </div> </div> <div class='btn-group ' id='share_providers'> <div class='btn-group dropup'align=left> <button class='btn dropdown-toggle' data-toggle='dropdown'> <span class='icon-share'> Share</span> </button> <ul class='dropdown-menu' > <li><a href='//plus.google.com/share?url=https%3A%2F%2Fwww.fanfiction.net%2Fs%2F202125%2F1%2F' target=_new>Google+</a></li> <li><a href='//twitter.com/home?status=Reading+story%3A+https%3A%2F%2Fwww.fanfiction.net%2Fs%2F202125%2F1%2F' target=_new>Twitter</a></li> <li><a href='//www.tumblr.com/share/link?url=https%3A%2F%2Fwww.fanfiction.net%2Fs%2F202125%2F1%2F' target=_new>Tumblr</a></li> <li><a href='//www.facebook.com/sharer.php?u=https%3A%2F%2Fwww.fanfiction.net%2Fs%2F202125%2F1%2F' target=_new>Facebook</a></li> </ul> </div> </div> <button class='btn icon-heart' type=button onClick='$("#follow_area").modal();'> Follow/Favorite</button> <style> label input[type=checkbox]{ position: relative; vertical-align: middle; bottom: -5px; } </style> <div class='modal fade hide' id=follow_area> <div class='modal-body'> <center> <table style='padding:6px;color:black !important;'> <tr><td valign=top> + Follow <hr> <label class='checkbox'> <input type='checkbox' id=q_follow_story> Story </label> <label class='checkbox'> <input type='checkbox' id=q_follow_author> Writer </label> </td> <td width=20></td> <td valign=top> + Favorite <hr> <label class='checkbox'> <input type='checkbox' id=q_fav_story> Story </label> <label class='checkbox'> <input type='checkbox' id=q_fav_author> Writer </label> </td> </tr> </table> </center> </div> <div class='modal-footer'> <span class='btn pull-left' data-dismiss='modal'>Close</span> <span id='q_working' class='hide'>Working...  </span> <span class='btn btn-primary' onClick='post_q();'>Save</span> </div> </div> </TD> </TR> </TABLE></form> </div></div> <div style='height:5px'></div></div></div></div><div id=p_footer class=maxwidth style='clear:all;padding:1em 0 1em 0;'><div style='text-align:center'><a href='/support/'>Help</a> . <a href='/cookies/'>Cookies</a> . <a href='/privacy/'>Privacy</a> . <a href='/tos/'>Terms of Service</a> . <a href='#top'>Top</a></div><div style='height:10px'></div><div style='text-align:center'><a href='//www.twitter.com/fictionpress'><span class='icon-twitter-3' style='color:rgb(104, 100, 100);font-size:18px;height:20px;width:20px;'></span></a></div><div style='height:15px'></div></div> <script> $(function() { $('img.lazy').lazyload({ //skip_invisible : false }); }); </script> <style> .hv_center { bottom: 0px; position: fixed; left: 0; right: 0; height: 55px; background-color: #363636; color: #e4e4e4; /* IE 10 */ display:-ms-flexbox; -ms-flex-pack:center; -ms-flex-align:center; /* FF */ display:-moz-box; -moz-box-pack:center; -moz-box-align:center; /* Safari, Opera, and Chrome */ display:-webkit-box; -webkit-box-pack:center; -webkit-box-align:center; } #cookie_notice { font-size: 0.9em; } #cookie_notice a:link, #cookie_notice a:hover, #cookie_notice a:active, #cookie_notice a:visited { color: #e4e4e4; text-decoration: underline; } </style> <script> var _cookie_policy = 'cookies'; //cookie functions function _sCookieGet(cookieName) { var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return false; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); }; function _sCookieSet(NameOfCookie, value, expirehours, path, domain) { if(!path) path = "/"; var ExpireDate = new Date (); ExpireDate.setTime(ExpireDate.getTime() + (expirehours * 3600 * 1000)); document.cookie = NameOfCookie + "=" + escape(value) + (!expirehours ? "" : "; expires=" + ExpireDate.toGMTString()) + "; path="+path+";" +(!domain ? "" : "domain=" + domain + ";"); }; function _cookieAccept() { _sCookieSet(_cookie_policy,'yes',365 * 24,'/'); document.getElementById('cookie_notice').style.display = 'none'; } var c = _sCookieGet(_cookie_policy) if(c != "yes") { document.write("<div id='cookie_notice' class='hv_center'>" + " <div style='padding-left:50px;padding-right:50px'>" + " <table>" + " <tr>" + " <td> We use cookies. By using our services, you acknowledge that you have read and accept our <a href='/cookies/'>Cookies</a> & <a href='/privacy/'>Privacy</a> Policies.</td>" + " <td><div style='border:1px whitesmoke solid;padding:5px;margin-left:10px;cursor: pointer;' onClick='_cookieAccept()'>Accept</div></td>" + " </tr>" + " </table>" + " </div>" + "</div>"); } </script> </body></html>