Quirks and Bugs
Bootstrap javascript components are not loaded by default
- jQuery 1.7.1 interferes with the blocks list layout page
- It also causes errors in a few Stanford specific modules
Enabling jQuery 1.7.1 and bootstrap.js
- Activate PHP filter module and add the following PHP code to a custom block
<?php
drupal_add_js('sites/all/themes/open_framework/js/jquery-1.7.1.min.js',
'theme', 'header', FALSE, FALSE, FALSE);
drupal_add_js('sites/all/themes/open_framework/js/bootstrap.min.js',
'theme', 'header', FALSE, FALSE, FALSE);
?>
Hide Address Bar Automatically on Page Load
addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
function hideURLbar(){
if (window.pageYOffset < 1) {
window.scrollTo(0, 1);
}
}
IT Open House Site Case Study
CSS Injector Changes
@import url(http://fonts.googleapis.com/css?family=Cabin:700,400,400italic);
h1, h2, h3, h4, h5, p, a, li, th, td {font-family: 'Cabin', sans-serif;}
body {
background: #cad9e7 url('images/body_background_fullcolor.jpg');
background-attachment: fixed;
background-size: cover;
}
#main-content {
background-color: rgba(255,255,255,0.9);
border-radius: 10px;
}