1/** 2 * Theme frontend scripts 3 * 4 * @package Monument Valley 5 * @copyright WebMan Design, Oliver Juhas 6 * 7 * @since 1.0.0 8 * @version 1.9.2 9 * 10 * Contents: 11 * 12 * 10) Basics 13 * 20) Content 14 */ 15 16( function( $ ) { 17 18 'use strict'; 19 20 21 22 23 24 /** 25 * 10) Basics 26 */ 27 28 var 29 $breakpoints = ( 'undefined' !== typeof $monumentValleyBreakpoints ) ? ( $monumentValleyBreakpoints ) : ( { 'xl' : 1280 } ), 30 $simpleLayoutProjects = $( '.simple-layout .type-wm_projects' ); 31 32 33 34 /** 35 * Tell CSS that JS is enabled... 36 */ 37 38 $( '.no-js' ) 39 .removeClass( 'no-js' ); 40 41 42 43 /** 44 * Fixing Recent Comments widget multiple appearances 45 */ 46 47 $( '.widget_recent_comments ul' ) 48 .attr( 'id', '' ); 49 50 51 52 /** 53 * Responsive videos 54 */ 55 56 if ( $().fitVids ) { 57 58 $( document.getElementById( 'page' ) ) 59 .fitVids(); 60 61 } // /fitVids 62 63 64 65 66 67 /** 68 * 20) Content 69 */ 70 71 /** 72 * Comment form improvements 73 * 74 * Set textarea rows. 75 */ 76 77 $( document.getElementById( 'commentform' ) ) 78 .find( 'textarea' ) 79 .attr( 'rows', 4 ); 80 81 82 83 /** 84 * Simple projects layout focus 85 */ 86 87 $simpleLayoutProjects 88 .on( 'focus.aria mouseenter.aria', 'a', function( e ) { 89 90 // Processing 91 92 $( this ) 93 .closest( '.type-wm_projects' ) 94 .addClass( 'focus' ); 95 96 } ) 97 .on( 'blur.aria mouseleave.aria', 'a', function( e ) { 98 99 // Processing 100 101 $( this ) 102 .closest( '.type-wm_projects' ) 103 .removeClass( 'focus' ); 104 105 } ); 106 107 108 109 110 111} )( jQuery );
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.