Employee list and availibility

by Girisha Chennura

HTML

<header>
      <section id="main-nav" class="content">
              <article class="left">
                <nav class="option left">
                  <ul class="main-nav">
                    <li class="nav-item left">
                      <label class="nav-label">Browse the books of the Bible</label>
                      <a id="nav-browse-books" class="nav-link" title="Browse the books of the Bible" href="#"><span class="">Browse</span></a>
                      <ul class="nav-menu bible-nav" style="display: none;">
                        <!-- <h2>Books of the Bible</h2> -->
                        <div class="scroll bible-nav-scroll"><ul>
                            <li class="book-title">Genesis</li>
                            <ol style="display: none;">
                              <li class="left"><a class="chp-link left" href="/Genesis+1/">1</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+2/">2</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+3/">3</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+4/">4</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+5/">5</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+6/">6</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+7/">7</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+8/">8</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+9/">9</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+10/">10</a></li>
                              <li class="left"><a class="chp-link left" href="/Genesis+11/">11</a></li>
                              <li class="left"><a class="chp-link left"...

CSS

.box-sizing {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}
.user-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/*  Font Awesome 3.0
    the iconic font designed for use with Twitter Bootstrap
    -------------------------------------------------------
    The full suite of pictographic icons, examples, and documentation
    can be found at: http://fortawesome.github.com/Font-Awesome/

    License
    -------------------------------------------------------
    - The Font Awesome font is licensed under the SIL Open Font License - http://scripts.sil.org/OFL
    - Font Awesome CSS, LESS, and SASS files are licensed under the MIT License -
      http://opensource.org/licenses/mit-license.html
    - The Font Awesome pictograms are licensed under the CC BY 3.0 License -...

JavaScript

/* Broken on iPhone 5
    
   Click the Browse
   Click the Genesis row, it should expand but it does not on an iPhone 5, maybe because its too much DOM content?
   
   Here http://jsfiddle.net/ it does work because I've commented out much of the DOM.  Maybe an iPhone 5 bug?
*/

$('html').click(function() {
  if($('.bible-nav').is(':visible')) {
    $('.bible-nav').hide();
  }
});

$('.bible-nav').click(function(e) {
  e.stopPropagation();
});


$('#nav-browse-books').on('click', function (e) {
  e.stopPropagation();
  $('.bible-nav').show();
})

$('.book-title').on('click', function (e) {
  e.stopPropagation();
  $(this).next('ol').slideToggle('fast');
});