PageSourceSearch

https://kurimanzutto.com/scripts.029b465886b24590dfb8e1724d9424bc.js

js kurimanzutto.com collected 2026-10-02 03:21:55 UTC 15,534 bytes, 387 lines download raw bytes

1//------------------------------------------------------------------------------
2// CKEDITOR
3$( document ).bind("ready ajaxComplete",function() {
4
5    //--------------------------------------------------------------------------
6    // REMOVE CKEDITOR FRONTEND INLINE STYLES
7    $('[class*=ee-editor]').removeAttr("style");
8
9});
10
11
12
13
14
15
16
17
18$( document ).bind("ready",function() {
19
20// MOVE INFO
21    if ($('.custom-section1').length == 0) {
22        $(".s-projects section.objects.home").prepend("<section class='custom-section1'>");
23        $(".s-projects .custom-section1").load('/info section#wrapper-archive-info');
24    }
25    
26    
27    if ($('.custom-section2').length == 0) {
28        $(".s-projects section.objects.home").prepend("<section class='custom-section2'>");
29        $(".s-projects .custom-section2").load('/es/info section#wrapper-archive-info');
30    }
31
32});
33
34
35
36
37
38
39
40
41// REPLACE FOR READY + AJAX COMPLETE
42// $( document ).bind("ready ajaxComplete",function() {
43//--------------------------------------------------------------------------
44//--------------------------------------------------------------------------
45// MENU ANIMATION - OLD
46//--------------------------------------------------------------------------
47//--------------------------------------------------------------------------
48// $(window).load(function() {
49
50//     $(window).scroll(function(){
51//         if($(window).scrollTop() >= (2)) {    
52//             $( ".main-header" ).addClass( "main-header-custom" );
53//             // $( ".s-home .main-header" ).removeClass( "main-header-custom" );
54//         }else{
55//             $( ".main-header" ).removeClass( "main-header-custom" );
56//         }
57//         if ($(window).width() <= 480) {
58//             $( ".main-header" ).removeClass( "main-header-custom" );
59//             $( ".main-header" ).removeClass( "fixed" );
60//         }
61//     });
62
63//     //  $( ".s-home .main-header" ).removeClass( "fixed" );
64//     if ($(window).width() <= 480) {
65//         $( ".main-header" ).removeClass( "main-header-custom" );
66//         $( ".main-header" ).removeClass( "fixed" );
67        
68//     }
69   
70// });
71//------------------------------------------------------------------------------
72// SCROLL NEW 2024
73$(window).scroll(function() {
74
75    if ( $(this).scrollTop() >= 1 ) { 
76        $( ".main-header" ).addClass( "main-header-custom" );
77    }else{
78        $( ".main-header" ).removeClass( "main-header-custom" );
79    }
80    
81});
82
83
84
85//------------------------------------------------------------------------------
86// LOAD RESIZE
87$(window).on('load resize', function () {
88
89   
90// -------------------------------------------------------------------------
91// MOVE HOMEPAGE BANNER TO TOP
92    if ($('.s-home section[id*="banner-rotate"]').length) {
93    var extramenu = $('.main-header').outerHeight(true);
94    $(".s-home section[id*='banner-rotate']").css("margin-top", -(extramenu) );
95    }   
96    
97});
98// HOMEPAGE Gradients
99$( document ).bind("ready ajaxComplete",function() {
100
101//EXHIBITIONS IMAGE FIT REMOVE CSS
102 if($('#large img[src*="_fit"], #medium img[src*="_fit"]').length){
103       $('#large img, #medium img').css({'width':'auto'})
104   } 
105    //HOMEPAGE COLOR PICKER ON BANNER
106     $('.s-home #wrapper-banner-rotate .slide').each(function(){
107        var color = $(this).find('.image-title').css( 'color' );
108        $(this).find('.image-description').css('color', color);
109    }); 
110
111//TEXT IMAGE SWIPER TOGGLE CLASSES
112    $('.slideshow-headline a.cursor-pointer:first-of-type').addClass('slideshow-view');
113    $('.slideshow-headline a.cursor-pointer:last-of-type').addClass('thumb-view');
114    
115    
116// create gradient for fullscreen if supersized homepage
117if($(".s-home").length > 0){
118        $('<div />', { id: 'homefader' }).appendTo('section#wrapper-banner-rotate figure');
119        $("#homefader").css({
120            top: 0, 
121            left: 0,
122            height: '100%',
123            width: '100%',
124            zIndex:0,
125            position:'absolute'
126        });
127    }
128    
129    
130
131   
132});
133$( document ).bind("ready",function() {
134      $('.s-social header .links').append('<a href="https://www.facebook.com/KurimanzuttoGaleria/" target="_blank">Facebook</a>')
135
136    $('div#screen-biography-new header h4').text('Biography');   
137
138       if ($(window).width() <= 770) {
139    $('.footer-social').insertAfter('.footer-col4');     
140    } 
141
142    //--------------------------------------------------------------------------
143    // HI-RES IMAGE SWAP BASIC
144    // $('section#wrapper-announcement-box .text-one-column-with-image .image img').each(function() {
145    //     var imgUrl = $(this).attr('src').replace( '500x500_fit', 'original' ).replace( '1000x1000_fit', 'original' );
146    //     $(this).attr('src', imgUrl);
147    //     $(this).attr('srcset', imgUrl);
148    // });
149    
150     //JARALLAX
151     $('.text-one-column-with-image.banner-image figure').jarallax({
152            // speed: 0.5
153     });
154     
155     
156     //REMOVE EMPTY TITLE IN SEARCH
157     $('section.search.results .title:empty').remove();
158      
159    //PUBLICATIONS WORK AROUND
160    $('.s-publications section#images').insertAfter('.container.page-header-container');
161
162    //---------------------------------
163    // EDIT 09/04/2024
164    // DISABLING THIS - NOT SURE WHY THIS IS HERE SINCE ALL OF THIS TEXT IS EDITABLE IN THE MANAGER
165    // Find AND REPLACE TEXT
166    // $("section#selected-works .slideshow-headline h1").text('Selected Works');
167    // $("section#selected-works1 .slideshow-headline h1").text('Installation Views');
168    // // OLD $("section#installation-views .slideshow-headline h1").text('Selected Works');
169    // $("section#installation-views .slideshow-headline h1").text('Installation Views');
170    // $("section#video .slideshow-headline h1").text('Videos');
171    //---------------------------------
172    
173    // Find AND REPLACE TEXT
174    $('.s-home div#nl1-grid header h1').text('focus');
175	
176	//--------------------------------------------------------------------------  
177    // FOOTER
178   $('footer .container').append('<div class="col-custom"><span>© kurimanzutto</span></div>');
179    $('footer .footer-siteindex').parent('span').appendTo('.col-custom');
180    $('footer .credit').appendTo('.col-custom');
181	
182	 $('#site-index-urls').closest(".container").addClass('custom-site-index-container');
183    
184    // -------------------------------------------------------------------------
185    // HOME (BANNER-ROTATE)
186    if (window.location.pathname === '/') {
187        collageHistory.disableSlideshowNavigation();
188    }
189    $('section[id*="banner-rotate"] .bx-controls').remove();
190        
191    //--------------------------------------------------------------------------
192    // BANNER TEXT CONTAINER WORK AROUND
193    $('section[id*="banner-rotate"] figcaption').wrapInner('<div class="container"></div>');
194    $('section[id*="banner-stack"] figcaption').wrapInner('<div class="container"></div>');
195    
196    //--------------------------------------------------------------------------
197    // HI-RES IMAGE SWAP BASIC
198    // $('.text-one-column-with-image .image img').each(function() {
199    //     var imgUrl = $(this).attr('src').replace( '500x500_fit', 'original' ).replace( '1000x1000_fit', 'original' );
200    //     $(this).attr('src', imgUrl);
201    //     $(this).attr('srcset', imgUrl);
202    // });
203
204    //--------------------------------------------------------------------------
205    // REMOVE PASTED STYLES
206     $( ".paragraph-styling *:not(figure),  .caption *, .text *" ).removeAttr("style");
207    // figcaption *,
208    //--------------------------------------------------------------------------
209    // REMOVE PASTED IMAGES
210    $( ".paragraph-styling p img, figcaption p img, .caption p img, .text p img" ).remove();
211    //--------------------------------------------------------------------------
212    // REMOVE - UNWRAP PASTED HTML TAGS
213    // $(".paragraph-styling span, .paragraph-styling font").contents().unwrap();
214    $("figcaption span, figcaption font").contents().unwrap();
215    $(".caption span, .caption font").contents().unwrap();
216    // $(".text span, .text font").contents().unwrap();
217    // MIGHT HAVE TO USE LOAD INSTEAD OF READY
218
219
220    //--------------------------------------------------------------------------
221    // REMOVE EMPTY PARAGRAPHS
222    $('.paragraph-styling p:not(:first-of-type), figcaption p:not(:first-of-type), .caption p:not(:first-of-type), .text p:not(:first-of-type)').each(function(index, item) {
223        if($.trim($(item).text()) === "") {$(item).remove();}
224    });
225    
226    //--------------------------------------------------------------------------
227    // REMOVE BACK BUTTONS
228    $( ".back" ).remove();
229    
230    //--------------------------------------------------------------------------
231    // REMOVE EMPTY DATE HTML TAGS
232    $("span.date").filter( function() {return $.trim($(this).html()) == '';}).remove();
233    
234    //--------------------------------------------------------------------------
235    // CUSTOM CLASS HEADER PARAGRAPH SEE CSS
236    $('.paragraph-styling p').each(function(){
237            if ($(this).find('strong > em > u, strong > u > em, em > strong > u, em > u > strong, u > em > strong, u > strong > em').length) {
238                $(this).addClass('custom-header-paragraph');
239                $(this).find('strong, em, u').contents().unwrap()
240            }
241    });
242
243    //--------------------------------------------------------------------------
244    // CUSTOM CLASS BULLET SEE CSS
245    $('.paragraph-styling p').each(function(){
246            var str = $(this).html();
247            if (str.startsWith("•") || str.startsWith("*")) {
248                $(this).addClass('custom-bullet');
249                $(this).html(str.substring(1, str.length));
250            }
251    });
252    $('.custom-bullet').parent().children('*:not(.custom-bullet)').prev(".custom-bullet").addClass('custom-bullet-last')    
253
254    //--------------------------------------------------------------------------
255    // CUSTOM CLASS HORIZONTAL-LINE SEE CSS
256    $('.paragraph-styling p').each(function(){
257            var str = $(this).text();
258            if (str.startsWith("--")) {
259                $(this).addClass('custom-horizontal-line');
260                $(this).html('\u00A0');
261            }
262    });
263    
264    //--------------------------------------------------------------------------
265    // SOCIAL MEDIA PLACE ON 4TH FOOTER COL
266    $('.footer-social').prependTo('.footer-col4');
267    
268    //--------------------------------------------------------------------------
269    // SOCIAL HOVER - SET IMAGE AS BACKGROUND WITH HOVER POSITION
270    $('.footer-social a img').each(function() {
271        var imgUrl = $(this).attr('src');
272        $(this).css({'opacity':'0','width':'20px','height':'20px'});
273        $(this).parents('a').css({'background': 'transparent url(' + imgUrl + ') top left no-repeat','background-size':'cover','width':'20px','height':'20px'});
274    });
275    $('.footer-social').css({'text-align':'left','float':'none','margin-bottom':'5px'});
276    $('.footer-social a').hover(
277        function() {
278            $(this).css( "background-position", "top right" );
279        }, function() {
280            $(this).css( "background-position", "top left" );
281        }
282    );
283 
284    
285     //--------------------------------------------------------------------------
286    // CREATE GRADIENT FOR SUPERSIZED HOMEPAGE
287    if($(".s-homepage #supersized").length){
288            $('<div />', { id: 'homefader' }).appendTo('body');
289            $("#homefader").css({
290                top: 0, 
291                left: 0,
292                height: '100%',
293                width: '100%',
294                zIndex:0,
295                position:'absolute',
296                'pointer-events': 'none'
297            });
298    }
299    
300    
301    
302     //--------------------------------------------------------------------------
303    // ANNOUNCEMENT-BOX
304    if($('.s-home').length){
305        $('.contentWrapper').append("<div id='ee-temp'></div>");
306        
307        $( "#ee-temp" ).load( "/homepage-box section#wrapper-announcement-box", function() {
308            
309            // unwrap itself
310            $('#ee-temp > section#wrapper-announcement-box').unwrap();
311          
312            // make close x          
313            $('<a class="close">×</a>', { id: 'close' }).appendTo('section#wrapper-announcement-box');
314            $('section#wrapper-announcement-box .close').on('click', function() {
315                $(this).closest('section').remove();
316            });          
317
318            // link
319            if($('#screen-announcement-box .text a').length){
320                var boxUrl = $('#screen-announcement-box .text a').attr( 'href' );
321                $('#screen-announcement-box .text a').contents().unwrap();
322                $('#screen-announcement-box').wrap('<a href="'+boxUrl+'"></a>');
323            }
324
325            // // image swap
326            $('#wrapper-announcement-box img').each(function() {
327                var match = $(this).attr('src').match(/([a-f0-9]{24}\/[a-f0-9]{32}\.\w{3,4})$/);
328                if (!match) {
329                    return;
330                }
331                var imgPath = match[1];
332                var src = getResolveUrl(imgPath, 'enlarge');
333                $(this).attr('src', src);
334                if (typeof $(this).attr('srcset') !== 'undefined') {
335                    var srcset = getResolveUrl(imgPath, 'enlarge') + ' 1x, ' + getResolveUrl(imgPath, 'enlarge') + ' 2x';
336                    $(this).attr('srcset', srcset);
337                }
338            });
339
340
341        });
342        
343        
344        
345    }
346    
347
348});
349
350$( document ).bind("ready ajaxComplete",function() {
351  //SPANISH TRANSLATIONS
352    $('div#screen-biography-new header h4:lang(es)').text('biografía');   
353     $('#selected-works1 .slideshow-headline h1:lang(es)').text('vistas de instalación');
354     $('#selected-works .slideshow-headline h1:lang(es)').text('Obra destacada');
355     $('#installation-views .slideshow-headline h1:lang(es)').text('vistas de instalación');
356    // OLD  $('.s-e1 #installation-views .slideshow-headline h1:lang(es)').text('Obra destacada');
357     $('.s-e1 #installation-views .slideshow-headline h1:lang(es)').text('vistas de instalación');
358    
359});      
360
361// XL Slideshow
362
363// function getResolveUrl(file, filter) {
364//     return '/custom/media/cache/resolve/' + filter + '/' + file;
365// }
366
367// collageDispatcher.on('bxslider.beforePreload', function(config) {
368//     if ($(".slider figure img").length) {
369//         $('.slider figure img').each(function() {
370//             var match = $(this).data('src').match(/([a-f0-9]{24}\/[a-f0-9]{32}\.\w{3,4})$/);
371//             if (!match) {
372//                 return;
373//             }
374
375//             var imgPath = match[1];
376//             var src = getResolveUrl(imgPath, 'enlarge');
377
378//             $(this).data('src', src).attr('data-src', src).attr('src', src);
379
380//             if (typeof $(this).data('srcset') !== 'undefined') {
381//                 var srcset = getResolveUrl(imgPath, 'enlarge') + ' 1x, ' + getResolveUrl(imgPath, 'enlarge_2x') + ' 2x';
382//                 $(this).data('srcset', srcset).attr('data-srcset', srcset).attr('srcset', srcset);
383//             }
384//         });
385//     }
386// });
387   

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.