PageSourceSearch

https://robertindiana.com/scripts.1b15e92d84aa9c2a0c42b8e38ad1b472.js

js robertindiana.com collected 2026-10-02 05:24:43 UTC 14,121 bytes, 383 lines download raw bytes

1$( window ).resize(function() {
2    
3    
4    //------------------------------------------------------------------------------
5    // MOVE HOMEPAGE IMAGES TO THE TOP
6    var extramenu = $('.main-header').outerHeight(true);
7    $(".s-home .custom_page").css("margin-top", -(extramenu) );
8
9
10
11
12});
13
14
15
16
17
18
19
20
21$( document ).bind("ready ajaxComplete",function() {
22    
23    
24    
25    
26    
27    //MOVE LOGO
28    if($(".s-home").length){
29            $(".logo").detach().prependTo('body')
30    }
31    
32    
33    
34    // create gradient for fullscreen if supersized homepage
35    if($(".s-home.detail-page #wrapper-banner-full").length > 0){
36        $('<div />', { id: 'homefader' }).insertAfter('body');
37        $("#homefader").css({
38            top: 0, 
39            left: 0,
40            height: '100%',
41            width: '100%',
42            zIndex:50,
43            position:'absolute'
44        });
45    }
46    
47    
48    
49    // Find AND REPLACE TEXT ON ARTIST PAGE
50    $(".s-artist.detail-page header.section-header.divider.page-header h1").text(function () {
51        return $(this).text().replace("Artist", "Robert Indiana"); 
52    });
53    
54    
55    
56    // CHRONOLOGY - FLEX ALIGNMENT (SPLIT AT FIRST <BR>)
57    $('#screen-content-b .ee-editor-block').each(function () {
58        var str = $(this).html();
59        var index = str.indexOf('\n');
60        var arr = [str.slice(0, index), str.slice(index + 1)];
61        $(this).html("<span>"+arr[0]+"</span><span>"+arr[1]+"</span>");
62    }); 
63  
64
65
66
67    //ARWORKS PAGE RIGHT IMAGE
68    $(".s-painting .home .column .entry:first-of-type").trigger('mouseenter');
69    $(".s-sculpture .home .column .entry:first-of-type").trigger('mouseenter');
70    $(".s-works-on-paper .home .column .entry:first-of-type").trigger('mouseenter');
71
72
73
74 
75  
76    // LEGACY PARTNERSHIPS - center title into grid entry
77    $("#legacy-partnerships-grid .titles").each(function(){
78        $(this).appendTo($(this).prev(".placeholder"));
79        $(this).css({'position':'absolute','top':'50%','left':'50%','transform':'translate(-50%, -50%)','width':'100%','text-align':'center'});
80    });
81    
82    
83    
84    
85    // MOVE ARTWORKS DESCRIPTION
86    $(".s-artworks-items.detail-page section#description").appendTo(".s-artworks-items.detail-page .sidebar-left");
87    
88    // MOVE ARTWORKS BACK BUTTON
89    $(".s-artworks-items.detail-page a.link-back.back-link.back").appendTo(".s-artworks-items.detail-page .sidebar-left");
90    
91    
92    
93    // MOVE POETRY DESCRIPTION
94    $(".s-poetry-items.detail-page section#description").appendTo(".s-poetry-items.detail-page .sidebar-left");
95    
96    // MOVE POETRY BACK BUTTON
97    $(".s-poetry-items.detail-page a.link-back.back-link.back").appendTo(".s-poetry-items.detail-page .sidebar-left");
98  
99    
100    
101    
102    
103    // Find AND REPLACE TEXT ON FAQ
104    // $(".s-faq.detail-page header.section-header.divider.page-header h1").text(function () {
105    //     return $(this).text().replace("FAQ", "Information"); 
106    // });
107    
108    
109    
110    
111    
112    
113    // SEARCH PAGE - ADD BACKGROUND IMAGE
114    var srch = document.getElementsByClassName('search');
115    var rslt = document.getElementsByClassName('results');
116    var nrslt = document.getElementsByClassName('no-results');
117    if (srch.length > 0) {
118        if (nrslt.length > 0) {
119            document.body.style.backgroundImage='none';
120            // document.getElementById('iosFakeBackground').style.backgroundImage='none';
121        } else if (rslt.length > 0) {
122            document.body.style.backgroundImage='none';
123            // document.getElementById('iosFakeBackground').style.backgroundImage='none';
124        } else {
125             document.body.style.backgroundImage='url(https://s3.amazonaws.com/files.collageplatform.com.prod/application/61fd44bf9789833084405ac2/003BasilLangton_IndianaandStencil.png)';
126            // document.getElementById('iosFakeBackground').style.backgroundImage="url(https://s3.amazonaws.com/files.collageplatform.com.prod/application/61fd44bf9789833084405ac2/003BasilLangton_IndianaandStencil.png)";
127        }
128    }
129    
130    
131    
132    
133    
134    
135    
136
137    //--------------------------------------------------------------------------
138    // REMOVE CKEDITOR FRONTEND INLINE STYLES
139    $('[class*=ee-editor]').removeAttr("style");
140    
141    //--------------------------------------------------------------------------
142    // SCREEN-INVERT
143    $(".ee-editor-screen-invert").each(function() {
144        // $(this).closest('.text-image-wrapper').addClass('ee-custom-screen-invert');
145        $(this).closest('.text-one-column-with-image').addClass('ee-custom-screen-invert');
146        $(this).remove();
147    });    
148    
149    
150    
151    
152    //--------------------------------------------------------------------------
153    // SCREEN-WIDE
154    $(".ee-editor-screen-wide").each(function() {
155        $(this).closest('.text-one-column-with-image').addClass('ee-custom-screen-wide');
156        $(this).remove();
157    });
158    
159    
160    
161    
162    
163    
164    
165    
166    
167    
168    
169
170});
171
172
173
174
175
176
177
178
179
180
181
182$( document ).bind("ready ajaxComplete",function() {
183
184
185
186 //------------------------------------------------------------------------------
187// MOVE JOURNALS TEXT   
188    if ($('.custom-section2').length == 0) {
189        $(".s-artist.detail-page div#publications-grid").prepend("<section class='custom-section2'>");
190        $(".s-artist.detail-page .custom-section2").load('/info #wrapper-journals-info');
191    }
192    
193    
194
195
196
197});
198
199
200
201
202
203
204
205//------------------------------------------------------------------------------
206// DOC READY ONLY
207$( document ).bind("ready",function() {
208
209
210
211    // MOVE INFO
212    if ($('.custom-section1').length == 0) {
213        $(".s-legacy-partnerships section.artists.home").append("<section class='custom-section1'>");
214        $(".s-legacy-partnerships .custom-section1").load('/info #wrapper-legacy-partnership-info');
215    }
216    
217    
218    
219    //--------------------------------------------------------------------------
220    // NEWS DETAIL PAGE WORKAROUND RE-ORDER WITH SWIPER
221    $('.s-news.detail-page .page-header-container ~ .container > .image').remove();
222    $('.s-news.detail-page section#content-a').prependTo('.contentWrapper');
223    $('.s-news.detail-page section#swiper-a').prependTo('.contentWrapper');
224    $('.s-news.detail-page .page-header-container').prependTo('.contentWrapper');
225
226    //--------------------------------------------------------------------------
227    // TWO-UP CENTER NO-IMAGE SCREEN
228    // $(".text-image-wrapper.two-up").each(function(){
229    //     if( ($(this).find('.no-image').length) && (!$(this).find('[data-slideshow-view]').length) && (!$(this).find('.ee-custom-screen-align-top').length) ){
230    //         $(this).css({'align-self':'center'});
231    //     }    
232    // });    
233
234
235
236    //--------------------------------------------------------------------------
237    // FOOTER SOCIAL - APPEND TO FOOTER-COLS
238    $('.footer-social').appendTo( '.footer-cols' );
239    
240    
241    //--------------------------------------------------------------------------
242    // FOOTER IMAGE - PREPEND TO FOOTER-COLS
243    $('.image-links-wrapper').prependTo( '.footer-col1' );
244    
245    //--------------------------------------------------------------------------
246    // FOOTER SITEINDEX + CREDIT 
247    $('<div id="ee-footer-footer"></div>').appendTo( 'footer .container' );
248    $('footer .ee-editor-block').appendTo('#ee-footer-footer');  
249    $('footer .credit').appendTo('#ee-footer-footer'); 
250    $('a.footer-siteindex').appendTo('#ee-footer-footer'); 
251
252
253
254
255    
256    
257});
258
259
260//------------------------------------------------------------------------------
261//------------------------------------------------------------------------------
262//------------------------------------------------------------------------------
263// LOAD RESIZE
264$(window).on('load resize', function () {
265
266    // -------------------------------------------------------------------------
267    // MOVE ELEMENTS IN RELATION OF HEIGHT OF MAIN-HEADER
268    var extramenu = $('.main-header').outerHeight(true);
269    // $(".s-home #screen-content-a-top > .banner-image:first-of-type").css("margin-top", -(extramenu) );
270    
271});
272
273
274
275//------------------------------------------------------------------------------
276//------------------------------------------------------------------------------
277// -----------------------------------------------------------------------------
278// SCROLLREVEAL
279$( document ).bind("ready",function() {
280    
281    function ee_add_scrollreveal_class() {
282        $('.grid-container .entry').addClass('ee-scrollreveal');
283        $('.list .entry .thumbnail').addClass('ee-scrollreveal');
284        $('.list .entry .info').addClass('ee-scrollreveal');
285        $('.squared .thumbnail-container').addClass('ee-scrollreveal');
286        $('.footer-cols > div').addClass('ee-scrollreveal');
287        $('.text-one-column-with-image .text').addClass('ee-scrollreveal');
288        $('.text-one-column-with-image:not(.banner-image):not(.image-uncropped_banner) .image').addClass('ee-scrollreveal');
289        $('.text-one-column').addClass('ee-scrollreveal'); 
290        $('.text-two-columns .left').addClass('ee-scrollreveal');
291        $('.text-two-columns .right').addClass('ee-scrollreveal');
292        $('.text-three-columns .column').addClass('ee-scrollreveal');
293        $('.news-details .details').addClass('ee-scrollreveal');
294        $('.news-details .image').addClass('ee-scrollreveal');
295        $('.artists.home .column').addClass('ee-scrollreveal');   
296    }    
297
298    function ee_remove_reset_scrollreveal() {
299        $('.ee-scrollreveal').css({'opacity':'','transition':'','transform':'','visibility':'visible'});
300        ScrollReveal().clean('.ee-scrollreveal');
301        ScrollReveal().sync();
302    } 
303
304    // add class to items
305    ee_add_scrollreveal_class();
306
307    // apply ScrollReveal to class
308    var slideUp = {
309        distance: '40px',
310        duration: 800,
311        interval: 80
312    };          
313    ScrollReveal().reveal('.ee-scrollreveal', slideUp);    
314
315    // reset ScrollReveal when there is a toggle click (swiper, artist list)
316    $('.squared .thumbnail-container img, .abs-thumbs a, .view a').click(function() { 
317        ee_remove_reset_scrollreveal(); 
318    });      
319
320    // reset ScrollReveal when there is a ajax load click (years, child, categories)
321    $('.switch a, a.ajax, .child a, .filter-items a').click(function() {
322        $( document ).bind("ajaxComplete",function() {
323            ee_add_scrollreveal_class();
324            ee_remove_reset_scrollreveal();
325            // re-apply reset click when there is a toggle (newly added swipers)
326            $('.squared .thumbnail-container img, .abs-thumbs a').click(function() { 
327                ee_remove_reset_scrollreveal(); 
328            });             
329        }); 
330    }); 
331});
332// SCROLLREVEAL - PAST EXHIBITIONS SUBMENU CLICK SCROLL TO TOP
333$( document ).bind('ready ajaxComplete', function() {
334    //--------------------------------------------------------------------------
335    // EXHIBITIONS INDEX - this must be here to calculate offset scroll correctly
336    $('<div class="container "><header class="section-header divider"><h4>Current</h4></header></div>').prependTo('.s-exhibitions #large');
337        
338    $('.past .switch a').click(function() {
339        if ($(window).width() > 1023) {
340            // calculate offset from top - main header height OR hard number
341            // var extramenu = $('.main-header').outerHeight(true);
342            var extramenu = 40;
343            // make past container 100% height so submenu stays at top
344            $( document ).bind("ajaxComplete",function() {
345                $('.past').css({'min-height':'calc(100vh - '+extramenu+'px)'});          
346            }); 
347            // scroll to top offset
348            $('html, body').animate({
349                scrollTop: $(".past").offset().top-extramenu
350            }, 350);
351        }    
352    });
353});
354// SCROLLREVEAL - LONG content pages are problematic (height calculations render incorrect)
355// applying an arbitrary scrollReveal (after full load) will reset calculations
356$(window).load(function() {
357    ScrollReveal().reveal('footer .divider', { duration: 0 });
358});
359
360/* Mailchimp footer email form */
361$( document ).ready(() => {
362    $('body').attr('data-email-protected', 1);
363    const footer_embed_content = `
364    <div id="mc_embed_shell">
365        <div id="mc_embed_signup">
366            <form action="https://robertindiana.us14.list-manage.com/subscribe/post?u=51cae3c3f61d3df89a0fc80c1&amp;id=621e5b5a65&amp;f_id=0001b8e5f0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_self" novalidate="">
367                <div id="mc_embed_signup_scroll"><h2>Join our mailing list</h2>
368                    <div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
369                    <div class="mc-field-group"><label for="mce-EMAIL">Email Address <span class="asterisk">*</span></label><input placeholder="Email" type="email" name="EMAIL" class="required email" id="mce-EMAIL" required="" value=""></div>
370                <div id="mce-responses" class="clear">
371                    <div class="response" id="mce-error-response" style="display: none;"></div>
372                    <div class="response" id="mce-success-response" style="display: none;"></div>
373                </div><div aria-hidden="true" style="position: absolute; left: -5000px;"><input type="text" name="b_51cae3c3f61d3df89a0fc80c1_621e5b5a65" tabindex="-1" value=""></div><div class="clear"><input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="Subscribe"></div>
374            </div>
375            </form>
376        </div>
377    </div>
378`;
379    
380    $('.footer-cols').append(footer_embed_content);
381    
382})
383   

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.