PageSourceSearch

https://worldswithoutend.com/js/novel.js?cache=no

js worldswithoutend.com collected 2026-10-02 06:53:18 UTC 2,222 bytes, 84 lines download raw bytes

1/****************************************************************/
2/*			JQuery MUST be included in the source page			*/
3/****************************************************************/
4
5/* 
6	novel management and manipulation class 
7	usage: 
8		var nov = new Novel(); 
9*/ 
10
11function Novel() {
12    this.Set_RFO = function (theID, RFO, Box) {
13        // Set Read, Favorite or Ownit
14        //	RFO = {
15        //			'R': Add to reading list 
16        //			'F': Favorite 
17        //			'O': Own it 
18        //		  }
19
20        var TF = 0;
21
22        if ($(Box).attr('checked')) {
23            TF = 1;
24        }
25        else {
26            TF = 0;
27        }
28
29        // alert('Woot! Setting ' + theID + ' to ' + RFO + ' ' + TF);
30        // do AJAX call here 
31
32        // call to the server to set the gmrc status of the novel 
33        // http://api.jquery.com/jQuery.ajax/
34        $.ajax({
35            type: 'GET',
36            url: 'ajax/novel_functions.asp',
37            data: {
38                todo: 'rfo',
39                n: theID,
40                ch: TF,
41                rfo: RFO
42            },
43            dataType: 'text',
44            success: function (data) {
45                // alert('done! ' + data);
46            },
47            error: function (jqXHR, textStatus, errorThrown) {
48                alert(textStatus + '\n' + errorThrown);
49            }
50        });
51
52    }; 
53
54	this.UpdateReadingStatus = function(theID, Status, memberid, theCheckbox) {	
55		// Update the reading status
56		// Status = 1, 2 or 0 (Read, Reading or Not Read) 
57															
58		// alert("Setting " + theID + " to " + Status);
59
60                                                            
61		// call to the server to set the reading status of the novel 
62		// http://api.jquery.com/jQuery.ajax/
63		$.ajax({
64			type: 'GET',
65			url: 'ajax/novel_functions.asp',
66			data: {
67				todo: 'rstat',
68				n: theID,
69				ch: Status, 
70                m: memberid
71			},
72			dataType: 'text',
73			success: function (data) {
74			//    alert('done! ' + data); 			
75            },
76			error: function (jqXHR, textStatus, errorThrown) {
77				alert(textStatus + '\n' + errorThrown);
78			}
79		});
80	}
81}
82
83
84

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.