mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2026-02-14 05:19:18 +00:00
Initial commit. State 04.2021.
This commit is contained in:
1343
wp-content/themes/professional/assets/js/bxslider.js
Normal file
1343
wp-content/themes/professional/assets/js/bxslider.js
Normal file
File diff suppressed because it is too large
Load Diff
10
wp-content/themes/professional/assets/js/bxslider.min.js
vendored
Normal file
10
wp-content/themes/professional/assets/js/bxslider.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
wp-content/themes/professional/assets/js/custom-ck.js
Normal file
1
wp-content/themes/professional/assets/js/custom-ck.js
Normal file
@@ -0,0 +1 @@
|
||||
jQuery(document).ready(function(){jQuery("#site-navigation li").find("ul").hide();jQuery("#site-navigation li").hover(function(){jQuery(this).find("> ul").slideDown("fast")},function(){jQuery(this).find("ul").hide()});jQuery(".menu-toggle").toggle(function(){jQuery("#site-navigation ul.menu").slideDown();jQuery("#site-navigation div.menu").fadeIn()},function(){jQuery("#site-navigation ul.menu").hide();jQuery("#site-navigation div.menu").hide()});jQuery(".showcase").fadeOut("fast");jQuery("article.grid2").fadeOut();jQuery("#home-title").fadeOut();jQuery(".pagination").fadeOut();jQuery("#social-icons a").tooltipster()});jQuery(function(e){e("#showcase").waypoint(function(){e(".showcase").fadeIn(1500)},{offset:"80%",triggerOnce:!0});e("article.grid2").waypoint(function(){e("article.grid2").fadeIn(1500)},{offset:"80%",triggerOnce:!0});e("#home-title").waypoint(function(){e("#home-title").fadeIn(1500)},{offset:"80%",triggerOnce:!0});e(".pagination").waypoint(function(){e(".pagination").fadeIn(1500)},{offset:"90%",triggerOnce:!0})});
|
||||
66
wp-content/themes/professional/assets/js/custom.js
Normal file
66
wp-content/themes/professional/assets/js/custom.js
Normal file
@@ -0,0 +1,66 @@
|
||||
jQuery(document).ready( function () {
|
||||
|
||||
//For Menu Bar
|
||||
jQuery('#site-navigation li').find('ul').hide();
|
||||
jQuery('#site-navigation li').hover(
|
||||
function(){
|
||||
|
||||
jQuery(this).find('> ul').slideDown('fast');
|
||||
},
|
||||
function(){
|
||||
jQuery(this).find('ul').hide();
|
||||
});
|
||||
|
||||
jQuery('.menu-toggle').toggle(function() {
|
||||
jQuery('#site-navigation ul.menu').slideDown();
|
||||
jQuery('#site-navigation div.menu').fadeIn();
|
||||
},
|
||||
function() {
|
||||
jQuery('#site-navigation ul.menu').hide();
|
||||
jQuery('#site-navigation div.menu').hide();
|
||||
});
|
||||
|
||||
//Hide showcase items for waypoint to work
|
||||
jQuery('.showcase').fadeOut('fast');
|
||||
jQuery('article.grid2').fadeOut();
|
||||
jQuery('#home-title').fadeOut();
|
||||
jQuery('.pagination').fadeOut();
|
||||
|
||||
//For Tooltips
|
||||
jQuery('#social-icons a').tooltipster();
|
||||
|
||||
});//end ready
|
||||
|
||||
//Waypoint Animation
|
||||
jQuery(function($) {
|
||||
|
||||
$('#showcase').waypoint(function() {
|
||||
$('.showcase').fadeIn(1500);
|
||||
},
|
||||
{
|
||||
offset: '95%',
|
||||
triggerOnce: true
|
||||
});
|
||||
$('article.grid2').waypoint(function() {
|
||||
$('article.grid2').fadeIn(1500);
|
||||
},
|
||||
{
|
||||
offset: '95%',
|
||||
triggerOnce: true
|
||||
});
|
||||
$('#home-title').waypoint(function() {
|
||||
$('#home-title').fadeIn(1500);
|
||||
},
|
||||
{
|
||||
offset: '95%',
|
||||
triggerOnce: true
|
||||
});
|
||||
$('.pagination').waypoint(function() {
|
||||
$('.pagination').fadeIn(1500);
|
||||
},
|
||||
{
|
||||
offset: '95%',
|
||||
triggerOnce: true
|
||||
});
|
||||
|
||||
});
|
||||
36
wp-content/themes/professional/assets/js/customizer.js
Normal file
36
wp-content/themes/professional/assets/js/customizer.js
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Theme Customizer enhancements for a better user experience.
|
||||
*
|
||||
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
|
||||
( function( $ ) {
|
||||
// Site title and description.
|
||||
wp.customize( 'blogname', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-title a' ).text( to );
|
||||
} );
|
||||
} );
|
||||
wp.customize( 'blogdescription', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-description' ).text( to );
|
||||
} );
|
||||
} );
|
||||
// Header text color.
|
||||
wp.customize( 'header_textcolor', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
if ( 'blank' === to ) {
|
||||
$( '.site-title, .site-description' ).css( {
|
||||
'clip': 'rect(1px, 1px, 1px, 1px)',
|
||||
'position': 'absolute'
|
||||
} );
|
||||
} else {
|
||||
$( '.site-title, .site-description' ).css( {
|
||||
'clip': 'auto',
|
||||
'color': to,
|
||||
'position': 'relative'
|
||||
} );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} )( jQuery );
|
||||
34
wp-content/themes/professional/assets/js/navigation.js
Normal file
34
wp-content/themes/professional/assets/js/navigation.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* navigation.js
|
||||
*
|
||||
* Handles toggling the navigation menu for small screens.
|
||||
*/
|
||||
( function() {
|
||||
var container, button, menu;
|
||||
|
||||
container = document.getElementById( 'site-navigation' );
|
||||
if ( ! container )
|
||||
return;
|
||||
|
||||
button = container.getElementsByTagName( 'h1' )[0];
|
||||
if ( 'undefined' === typeof button )
|
||||
return;
|
||||
|
||||
menu = container.getElementsByTagName( 'ul' )[0];
|
||||
|
||||
// Hide menu toggle button if menu is empty and return early.
|
||||
if ( 'undefined' === typeof menu ) {
|
||||
button.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
|
||||
if ( -1 === menu.className.indexOf( 'nav-menu' ) )
|
||||
menu.className += ' nav-menu';
|
||||
|
||||
button.onclick = function() {
|
||||
if ( -1 !== container.className.indexOf( 'toggled' ) )
|
||||
container.className = container.className.replace( ' toggled', '' );
|
||||
else
|
||||
container.className += ' toggled';
|
||||
};
|
||||
} )();
|
||||
@@ -0,0 +1,19 @@
|
||||
( function() {
|
||||
var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
|
||||
is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1,
|
||||
is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1;
|
||||
|
||||
if ( ( is_webkit || is_opera || is_ie ) && 'undefined' !== typeof( document.getElementById ) ) {
|
||||
var eventMethod = ( window.addEventListener ) ? 'addEventListener' : 'attachEvent';
|
||||
window[ eventMethod ]( 'hashchange', function() {
|
||||
var element = document.getElementById( location.hash.substring( 1 ) );
|
||||
|
||||
if ( element ) {
|
||||
if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) )
|
||||
element.tabIndex = -1;
|
||||
|
||||
element.focus();
|
||||
}
|
||||
}, false );
|
||||
}
|
||||
})();
|
||||
1
wp-content/themes/professional/assets/js/tooltipster.js
Normal file
1
wp-content/themes/professional/assets/js/tooltipster.js
Normal file
File diff suppressed because one or more lines are too long
8
wp-content/themes/professional/assets/js/waypoints.js
Normal file
8
wp-content/themes/professional/assets/js/waypoints.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user