-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebac0b5
commit f77e79e
Showing
4 changed files
with
65 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,60 @@ | ||
// JavaScript Document | ||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) { | ||
var msViewportStyle = document.createElement("style") | ||
msViewportStyle.appendChild( | ||
document.createTextNode( | ||
"@-ms-viewport{width:auto!important}" | ||
) | ||
) | ||
document.getElementsByTagName("head")[0].appendChild(msViewportStyle) | ||
} | ||
|
||
jQuery(document).ready(function($) { | ||
/* Scroll Top */ | ||
jQuery(function ($) { | ||
$.scrollUp({ | ||
scrollName: 'scrollUp', // Element ID | ||
topDistance: '300', // Distance from top before showing element (px) | ||
topSpeed: 300, // Speed back to top (ms) | ||
animation: 'fade', // Fade, slide, none | ||
animationInSpeed: 200, // Animation in speed (ms) | ||
animationOutSpeed: 200, // Animation out speed (ms) | ||
scrollText: 'Scroll to top', // Text for element | ||
activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF' | ||
// activeOverlay:'#00FFFF', // Set CSS color to display scrollUp active point, e.g '#00FFFF' | ||
scrollImg: true // Set true to use image | ||
}); | ||
}); | ||
|
||
/* Bootstrap Carousel */ | ||
jQuery(document).ready(function ($) { | ||
$('.carousel').carousel({ | ||
interval: 5000, | ||
pause: "hover", | ||
wrap: true | ||
}) | ||
interval: 5000, | ||
pause: "hover", | ||
wrap: true | ||
}) | ||
}); | ||
|
||
jQuery(document).ready(function($){ | ||
/* Masonry Grid */ | ||
jQuery(document).ready(function ($) { | ||
var $container = $('#xoopsgrid').masonry(); | ||
$container.imagesLoaded( function() { | ||
$container.masonry(); | ||
$container.imagesLoaded(function () { | ||
$container.masonry(); | ||
}); | ||
}); | ||
|
||
/* Newbb */ | ||
jQuery(document).ready(function($){ | ||
jQuery(document).ready(function ($) { | ||
/* Bootstrap Style: Horizontal Form */ | ||
$(".xoopsform").find('form').addClass("form-inline"); | ||
$(".xoopsform").find('select').addClass("form-control"); | ||
$(".xoopsform").find('input[type="submit"]').addClass("btn btn-primary"); | ||
$(".newbb-links").find('span').removeClass('forum_icon forum_button'); | ||
$('.newbb-thread-attachment').find('br').remove(); | ||
$('.newbb-thread-attachment').find('hr').remove(); | ||
}) | ||
}); | ||
|
||
/* Profile */ | ||
jQuery(document).ready(function($){ | ||
$('#userinfo table, #regform table').addClass('table table-condensed table-hover').css('width','100%'); | ||
$('.profile-form input[type="text"], .profile-form input[type="password"]').addClass('form-control'); | ||
$('.profile-form select').addClass('form-control').css('width','100%'); | ||
$('.profile-form textarea').addClass('form-control'); | ||
$('.profile-form input.formButton').addClass('btn btn-primary pull-right'); | ||
jQuery(document).ready(function ($) { | ||
$('#userinfo table, #regform table').addClass('table table-condensed table-hover').css('width', '100%'); | ||
$('.profile-form input[type="text"], .profile-form input[type="password"]').addClass('form-control'); | ||
$('.profile-form select').addClass('form-control').css('width', '100%'); | ||
$('.profile-form textarea').addClass('form-control'); | ||
$('.profile-form input.formButton').addClass('btn btn-primary pull-right'); | ||
}); | ||
|
||
/* Add Form Classes */ | ||
jQuery(function ($) { | ||
$('#xoops_theme_select').addClass('form-control'); | ||
$('.formButton').addClass('btn btn-primary'); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters