PageSourceSearch

https://cabbrabant.com/wp-content/plugins/CAB-utility-plugin/js/CAB-custom.js

js cabbrabant.com collected 2026-10-02 13:58:28 UTC 3,192 bytes, 108 lines download raw bytes

1/************************/
2/*  Carousel Scripts    */
3/************************/
4
5(function ($) {
6  $('.carousel-showmanymoveone .carousel-item').each(function(){
7    
8        var itemToClone = $(this);
9    // for (var i=1;i<4;i++) {
10      itemToClone = itemToClone.next();
11
12      // wrap around if at end of item collection
13      if (!itemToClone.length) {
14        itemToClone = $(this).siblings(':first');
15      }
16      // grab item, clone, add marker class, add to collection
17      // itemToClone.clone()
18      itemToClone.children(':first-child').clone()
19        .addClass("cloneditem-1")
20        .appendTo($(this));
21    // }
22  });
23}(jQuery));
24/*  Carousel Scripts End  */
25
26
27
28// jQuery(document).ready( function( $ ) {
29 
30//     var myplugin_media_upload;
31 
32//     $('.cab_button').click(function(e) {
33 
34//  		console.log("Line 7");  	 
35
36//         e.preventDefault();
37 
38//         // If the uploader object has already been created, reopen the dialog
39//         // if( myplugin_media_upload ) {
40 
41//         //     myplugin_media_upload.open();
42//         //     return;
43 
44//         // }
45// 		console.log("Line 18") ;  	 
46        // Extend the wp.media object
47        // myplugin_media_upload = wp.media.frames.file_frame = wp.media({
48 
49        //     //button_text set by wp_localize_script()
50        //     title: "button_text.title",
51        //     button: { text: "button_text.button" },
52        //     multiple: true //allowing for multiple image selection
53 
54        // });
55
56		// myplugin_media_upload = wp.media.frames.file_frame = wp.media({
57	 //        title: 'Choose File',
58	 //        library: {
59	 //            author: userSettings.uid // specific user-posted attachment
60	 //        },
61	 //        button: {
62	 //            text: 'Choose File'
63	 //        },
64	 //        multiple: false
65  //   	});
66
67
68 
69        /**
70         *THE KEY BUSINESS
71         *When multiple images are selected, get the multiple attachment objects
72         *and convert them into a usable array of attachments
73         */
74        // myplugin_media_upload.on( 'select', function(){
75        // 	var attachments = myplugin_media_upload.state().get('selection').map(function( attachment ) {
76        //     attachment.toJSON();
77        //     return attachment;
78        // });
79 
80            //loop through the array and do things with each attachment
81 
82            // var i;
83 
84            // for (i = 0; i < attachments.length; ++i) {
85 
86            //     //sample function 1: add image preview
87            //     $('#myplugin-placeholder').after(
88            //         '<div class="myplugin-image-preview"><img src="' + 
89            //         attachments[i].attributes.url + '" ></div>'
90            //         );
91 
92            //     //sample function 2: add hidden input for each image
93            //     $('#myplugin-placeholder').after(
94            //         '<input id="myplugin-image-input' +
95            //         attachments[i].id '" type="hidden" 
96            //         name="myplugin_attachment_id_array[]"  value="' + 
97            //         attachments[i].id + '">'
98            //         );
99 
100            //  }
101 
102        // });
103 
104    // myplugin_media_upload.open();
105 
106//     });
107 
108// });

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.