/** * 상단 메뉴 Animation * @param tobj : Open Object */ $(document).ready(function () { $('.performance_01>per_txt').css('bottom', '-270px'); $('.performance_01>span.per_txt') .on('mouseover', function () { $('.performance_01>span.per_txt').css('bottom', '0px'); $('.performance_01 span.per_txt h3.title').css('background','none'); $('.performance_01 img:nth-child(1)').css('display', 'none'); $('.performance_01 img:nth-child(2)').css('display', 'block'); }) $('.performance_01>span.per_txt') .on('mouseout', function () { $('.performance_01>span.per_txt').css('bottom', '-270px'); $('.performance_01 span.per_txt h3.title').css('background',''); $('.performance_01 img:nth-child(1)').css('display', 'block'); $('.performance_01 img:nth-child(2)').css('display', 'none'); }) }); $(document).ready(function () { $('.performance_02>per_txt').css('bottom', '-270px'); $('.performance_02>span.per_txt') .on('mouseover', function () { $('.performance_02>span.per_txt').css('bottom', '0px'); $('.performance_02 span.per_txt h3.title').css('background','none'); $('.performance_02 img:nth-child(1)').css('display', 'none'); $('.performance_02 img:nth-child(2)').css('display', 'block'); }) $('.performance_02>span.per_txt') .on('mouseout', function () { $('.performance_02>span.per_txt').css('bottom', '-270px'); $('.performance_02 span.per_txt h3.title').css('background',''); $('.performance_02 img:nth-child(1)').css('display', 'block'); $('.performance_02 img:nth-child(2)').css('display', 'none'); }) }); $(document).ready(function () { $('.performance_03>per_txt').css('bottom', '-270px'); $('.performance_03>span.per_txt') .on('mouseover', function () { $('.performance_03>span.per_txt').css('bottom', '0px'); $('.performance_03 span.per_txt h3.title').css('background','none'); $('.performance_03 img:nth-child(1)').css('display', 'none'); $('.performance_03 img:nth-child(2)').css('display', 'block'); }) $('.performance_03>span.per_txt') .on('mouseout', function () { $('.performance_03>span.per_txt').css('bottom', '-270px'); $('.performance_03 span.per_txt h3.title').css('background',''); $('.performance_03 img:nth-child(1)').css('display', 'block'); $('.performance_03 img:nth-child(2)').css('display', 'none'); }) }); //보유장비 (function( $ ) { $.fn.prettyPre = function( method ) { var defaults = { ignoreExpression: /\s/ // what should be ignored? }; var methods = { init: function( options ) { this.each( function() { var context = $.extend( {}, defaults, options ); var $obj = $( this ); var usingInnerText = true; var text = $obj.get( 0 ).innerText; // some browsers support innerText...some don't...some ONLY work with innerText. if ( typeof text == "undefined" ) { text = $obj.html(); usingInnerText = false; } // use the first line as a baseline for how many unwanted leading whitespace characters are present var superfluousSpaceCount = 0; var pos = 0; var currentChar = text.substring( 0, 1 ); while ( context.ignoreExpression.test( currentChar ) ) { if(currentChar !== "\n"){ superfluousSpaceCount++; }else{ superfluousSpaceCount = 0; } currentChar = text.substring( ++pos, pos + 1 ); } // split var parts = text.split( "\n" ); var reformattedText = ""; // reconstruct var length = parts.length; for ( var i = 0; i < length; i++ ) { // remove leading whitespace (represented by an empty string) if(i === 0 && parts[0]=== ""){ continue; } // cleanup, and don't append a trailing newline if we are on the last line reformattedText += parts[i].substring( superfluousSpaceCount ) + ( i == length - 1 ? "" : "\n" ); } // modify original if ( usingInnerText ) { $obj.get( 0 ).innerText = reformattedText; } else { // This does not appear to execute code in any browser but the onus is on the developer to not // put raw input from a user anywhere on a page, even if it doesn't execute! $obj.html( reformattedText ); } } ); } } if ( methods[method] ) { return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ) ); } else if ( typeof method === "object" || !method ) { return methods.init.apply( this, arguments ); } else { $.error( "Method " + method + " does not exist on jQuery.prettyPre." ); } } } )( jQuery ); $(document).ready(function() { $('pre').prettyPre(); }); /* ---------------------------------------- Demo-Specific Scripts ---------------------------------------- */ $(document).ready(function() { $('.open-modal').quickModal(); });