PageSourceSearch

https://www.ledojomanga.com/code/js/collection.js

js ledojomanga.com collected 2026-10-03 00:39:56 UTC 1,115 bytes, 36 lines download raw bytes

1//changement de couleurs quand un titre est dans ta collection
2$(function() {
3	var G = $("#cnt_psd").val();
4
5	function collection_color(){
6		var dataid=$('[data-id]'), datafavorisid=$('[data-favoris-id]');
7		if(dataid.length>0 && G){
8			var collection_json=JSON.parse($("#c_list").val());
9			//console.log(collection_json);
10			var data_id;
11			dataid.each(function(){
12				data_id=$(this).attr('data-id');
13				if((data_id in collection_json)>0){
14					$(this).find('.add_collection').addClass('btn-primary');
15					$(this).find('.add_collection').attr("title","Modifier ma collection");
16				}else{
17					$(this).find(".add_collection").attr("title","Ajouter à ma collection");
18				}
19			});
20		}
21
22		if(datafavorisid.length>0 && G){
23			var favoris_json=JSON.parse($("#f_list").val());
24			//console.log(favoris_json);
25			var data_favoris_id;
26			datafavorisid.removeClass('btn-danger').addClass('btn-default');
27			datafavorisid.each(function(){
28				data_favoris_id=$(this).attr('data-favoris-id');
29				if((data_favoris_id in favoris_json)>0){
30					$(this).addClass('btn-danger');
31				}
32			});
33		}
34	}
35	collection_color();
36});

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.