PageSourceSearch

https://justmyshop.com/common/lib/addFavoriteList.js

js justmyshop.com collected 2026-10-02 07:29:08 UTC 5,345 bytes, 101 lines download raw bytes

1document.write('<script src="../../common/lib/underscore-min.js" type="text/javascript"></script>');
2document.write('<script src="../../common/lib/backbone-min.js" type="text/javascript"></script>');
3document.write('<script type="text/javascript" src="../../common/lib/jms-constants.js"></script>');
4document.write('<script type="text/javascript" src="../../common/lib/jms-utilities.js"></script>');
5document.write('<script type="text/javascript" src="../../common/lib/jms-facades.js"></script>');
6document.write('<script type="text/javascript" src="../../common/lib/jms-webapps.js"></script>');
7// コーナーお気に入りに追加ボタン
8addFavoriteList_addFavoriteCorner = function(aelement, campid) {
9    // コーナーお気に入り追加WebAPI
10    __JMS_WebApps.func.addFavoriteCorner(campid, function(ret) {
11        var aparent = $(aelement).parent();
12        if(ret.result==0) {
13            // result=0(追加成功)の場合,成功メッセージ表示
14            // お気に入り追加済みボタン表示へボタン表示変更
15            $(aelement).next().show();
16            $(aelement).hide();
17            // 星アニメーション
18            $(aparent).prev('.nonediv').children('.fillstar').show();
19            $(aparent).prev('.nonediv').children('.fillstar').addClass('swashIn');
20            // ヘッダーお気に入りのNEW表示
21            $('.top_favorite_new').fadeIn();
22            // お気に入り追加のメッセージセット
23            $(aparent).prevAll('.favoritemessagediv').find('.messageString').html('追加しました');
24        } else {
25            // エラーの場合,レスポンスメッセージセット
26            $(aparent).prevAll('.favoritemessagediv').find('.messageString').html(ret.message);
27        }
28        // →メッセージ表示→非表示
29        $(aparent).prevAll('.favoritemessagediv').fadeIn(1000, function() {
30            setTimeout(function() {
31                $(aparent).prevAll('.favoritemessagediv').fadeOut(1000);
32            }, 2000);
33        });
34    });
35};
36// コーナーお気に入り追加済ボタン
37addFavoriteList_addedFavoriteCorner = function() {
38    $(window).scrollTop(0);
39}
40// 商品お気に入りに追加ボタン
41addFavoriteList_addFavoriteItem = function(aelement, itemcode) {
42    // 商品お気に入り追加WebAPI
43    __JMS_WebApps.func.addFavoriteItem(itemcode, function(ret) {
44        var aparent = $(aelement).parent();
45        if(ret.result==0) {
46            // result=0(追加成功)の場合,成功メッセージ表示
47            // お気に入り追加済みボタン表示へボタン表示変更
48            $(aelement).next().show();
49            $(aelement).hide();
50            // 星アニメーション
51            $(aparent).prev('.nonediv').children('.fillstar').show();
52            $(aparent).prev('.nonediv').children('.fillstar').addClass('swashStar');
53            // ヘッダーお気に入りのNEW表示
54            $('.top_favorite_new').fadeIn();
55            // お気に入り追加のメッセージセット
56            $(aparent).prevAll('.favoritemessagediv').find('.messageString').html('追加しました');
57        } else {
58            // エラーの場合,レスポンスメッセージセット
59            $(aparent).prevAll('.favoritemessagediv').find('.messageString').html(ret.message);
60        }
61        // →メッセージ表示→非表示
62        $(aparent).prevAll('.favoritemessagediv').fadeIn(1000, function() {
63            setTimeout(function() {
64                $(aparent).prevAll('.favoritemessagediv').fadeOut(1000);
65            }, 2000);
66        });
67    });
68};
69// 既存JMSコーナー商品お気に入りに追加ボタン
70addFavoriteList_addFavoriteItemold = function(aelement, itemcode) {
71    // 商品お気に入り追加WebAPI
72    __JMS_WebApps.func.addFavoriteItem(itemcode, function(ret) {
73        var aparent = $(aelement).parent();
74        if(ret.result==0) {
75            // result=0(追加成功)の場合,成功メッセージ表示
76            // お気に入り追加済みボタン表示へボタン表示変更
77            $(aelement).next().show();
78            $(aelement).hide();
79            // 星アニメーション
80            $(aparent).prev('.nonediv').children('.fillstar').show();
81            $(aparent).prev('.nonediv').children('.fillstar').addClass('swasholdStar');
82            // ヘッダーお気に入りのNEW表示
83            $('.top_favorite_new').fadeIn();
84            // お気に入り追加のメッセージセット
85            $(aparent).prevAll('.favoritemessagediv').find('.messageString').html('追加しました');
86        } else {
87            // エラーの場合,レスポンスメッセージセット
88            $(aparent).prevAll('.favoritemessagediv').find('.messageString').html(ret.message);
89        }
90        // →メッセージ表示→非表示
91        $(aparent).prevAll('.favoritemessagediv').fadeIn(1000, function() {
92            setTimeout(function() {
93                $(aparent).prevAll('.favoritemessagediv').fadeOut(1000);
94            }, 2000);
95        });
96    });
97};
98// 商品お気に入り追加済ボタン
99addFavoriteList_addedFavoriteItem = function() {
100    $(window).scrollTop(0);
101}

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.