Widget:Bookshelf: Difference between revisions

Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(28 intermediate revisions by 4 users not shown)
Line 2: Line 2:


<includeonly>   
<includeonly>   
<div class="hidden">
<script type="text/javascript">
<!--//--><![CDATA[//><!--
var images = new Array()
function preload() {
for (i = 0; i < preload.arguments.length; i++) {
images[i] = new Image()
images[i].src = preload.arguments[i]
}
}
preload(
"http://www.wikidoc.org/images/3/38/Hematology-cyan.jpg",
"http://www.wikidoc.org/images/3/32/Hematology-selected.jpg",
"http://www.wikidoc.org/images/b/b9/Hematology-faded.jpg",
"http://www.wikidoc.org/images/f/fa/Oncology-cyan.jpg",
"http://www.wikidoc.org/images/d/d6/Oncology-selected.jpg",
"http://www.wikidoc.org/images/9/9d/Oncology-faded.jpg",
"http://www.wikidoc.org/images/4/4a/Gastroenterology-cyan.jpg",
"http://www.wikidoc.org/images/0/06/Gastroenterology-selected.jpg",
"http://www.wikidoc.org/images/d/d4/Gastroenterology-faded.jpg",
"http://www.wikidoc.org/images/0/0b/Nephrology-cyan.jpg",
"http://www.wikidoc.org/images/2/23/Nephrology-selected.jpg",
"http://www.wikidoc.org/images/a/a8/Nephrology-faded.jpg",
"http://www.wikidoc.org/images/d/dd/Neuro-cyan.jpg",
"http://www.wikidoc.org/images/8/85/Neuro-selected.jpg",
"http://www.wikidoc.org/images/d/d3/Neuro-faded.jpg",
"http://www.wikidoc.org/images/4/40/Psychiatry-cyan.jpg",
"http://www.wikidoc.org/images/1/10/Psychiatry-selected.jpg",
"http://www.wikidoc.org/images/5/52/Psychiatry-faded.jpg",
"http://www.wikidoc.org/images/7/7e/Endocrinology-cyan.jpg",
"http://www.wikidoc.org/images/8/89/Endocrinology-selected.jpg",
"http://www.wikidoc.org/images/5/54/Endocrinology-faded.jpg",
"http://www.wikidoc.org/images/4/4c/Cardiology-cyan.jpg",
"http://www.wikidoc.org/images/0/0a/Cardiology-selected.jpg",
"http://www.wikidoc.org/images/e/eb/Cardiology-faded.jpg",
"http://www.wikidoc.org/images/0/04/Pulmonary-cyan.jpg",
"http://www.wikidoc.org/images/4/45/Pulmonary-selected.jpg",
"http://www.wikidoc.org/images/3/30/Pulmonary-faded.jpg",
"http://www.wikidoc.org/images/2/27/Infectious-disease-cyan.jpg",
"http://www.wikidoc.org/images/0/09/Infectious-disease-selected.jpg",
"http://www.wikidoc.org/images/c/cd/Infectious-disease-faded.jpg",
"http://www.wikidoc.org/images/9/90/Pediatrics-cyan.jpg",
"http://www.wikidoc.org/images/9/9f/Pediatrics-selected.jpg",
"http://www.wikidoc.org/images/8/8a/Pediatrics-faded.jpg",


"http://www.wikidoc.org/images/1/1a/Emergency-medicine-cyan.jpg",
"http://www.wikidoc.org/images/2/29/Emergency-medicine-selected.jpg",
"http://www.wikidoc.org/images/3/39/Emergency-medicine-faded.jpg",
"http://www.wikidoc.org/images/3/3e/Ent-cyan.jpg",
"http://www.wikidoc.org/images/8/8a/Ent-selected.jpg",
"http://www.wikidoc.org/images/6/65/Ent-faded.jpg"
)
//--><!]]>
</script>
</div>
<script type = "text/javascript">
<script type = "text/javascript">


Line 8: Line 63:
mw.loader.load('mediaWiki.user');
mw.loader.load('mediaWiki.user');
imageObj = {Hematology: {normal: '/images/3/38/Hematology-cyan.jpg', selected: '/images/3/32/Hematology-selected.jpg', faded: '/images/b/b9/Hematology-faded.jpg'},
imageObj = {Hematology: {normal: '/images/3/38/Hematology-cyan.jpg', selected: '/images/3/32/Hematology-selected.jpg', faded: '/images/b/b9/Hematology-faded.jpg'},
Oncology: {normal: '/images/f/fa/Oncology-cyan.jpg', selected: '/images/d/d6/Oncology-selected.jpg', faded: '/imagesdex.php/File:Oncology-faded.jpg'},
Oncology: {normal: '/images/f/fa/Oncology-cyan.jpg', selected: '/images/d/d6/Oncology-selected.jpg', faded: '/images/9/9d/Oncology-faded.jpg'},
Gastroenterology: {normal: '/images/4/4a/Gastroenterology-cyan.jpg', selected: '/images/0/06/Gastroenterology-selected.jpg', faded: '/images/d/d4/Gastroenterology-faded.jpg'},
Gastroenterology: {normal: '/images/4/4a/Gastroenterology-cyan.jpg', selected: '/images/0/06/Gastroenterology-selected.jpg', faded: '/images/d/d4/Gastroenterology-faded.jpg'},
Nephrology: {normal: '/images/0/0b/Nephrology-cyan.jpg', selected: '/images/2/23/Nephrology-selected.jpg', faded: '/images/a/a8/Nephrology-faded.jpg'},
Nephrology: {normal: '/images/0/0b/Nephrology-cyan.jpg', selected: '/images/2/23/Nephrology-selected.jpg', faded: '/images/a/a8/Nephrology-faded.jpg'},
Neuro: {normal: '/images/d/dd/Neuro-cyan.jpg', selected: '/images/8/85/Neuro-selected.jpg', faded: '/images/d/d3/Neuro-faded.jpg'},
Neuro: {normal: '/images/d/dd/Neuro-cyan.jpg', selected: '/images/8/85/Neuro-selected.jpg', faded: '/images/d/d3/Neuro-faded.jpg'},
Pysch: {normal: '/images/4/40/Psychiatry-cyan.jpg', selected: '/images/1/10/Psychiatry-selected.jpg', faded: '/images/5/52/Psychiatry-faded.jpg'},
Psych: {normal: '/images/4/40/Psychiatry-cyan.jpg', selected: '/images/1/10/Psychiatry-selected.jpg', faded: '/images/5/52/Psychiatry-faded.jpg'},
Endocrinology: {normal: '/images/7/7e/Endocrinology-cyan.jpg', selected: '/images/8/89/Endocrinology-selected.jpg', faded: '/images/5/54/Endocrinology-faded.jpg'},
Endocrinology: {normal: '/images/7/7e/Endocrinology-cyan.jpg', selected: '/images/8/89/Endocrinology-selected.jpg', faded: '/images/5/54/Endocrinology-faded.jpg'},
Cardiology: {normal: '/images/4/4c/Cardiology-cyan.jpg', selected: '/images/0/0a/Cardiology-selected.jpg', faded: '/images/e/eb/Cardiology-faded.jpg'},
Cardiology: {normal: '/images/4/4c/Cardiology-cyan.jpg', selected: '/images/0/0a/Cardiology-selected.jpg', faded: '/images/e/eb/Cardiology-faded.jpg'},
Line 29: Line 84:


var chapter = $(this).attr('id');
var chapter = $(this).attr('id');
console.log(chapter)
srcLink = '';
srcLink = '';


Line 35: Line 89:


srcLink = imageObj[chapter].selected
srcLink = imageObj[chapter].selected
console.log("Selected works for " + chapter)


} else {
} else {
Line 49: Line 101:


});
});
$("#Bookshelf").mouseout(function() {
$(".bookChapter").each(function() {
var chapter = $(this).attr('id');
srcLink = imageObj[chapter].normal;
$(this).attr('src',srcLink);
});
});


});
});
</script>
</script>
<div ID = "Bookshelf">
<div ID = "Bookshelf">
<a title="The WikiDoc Living Textbook of Hematology" href="/index.php/The_WikiDoc_Living_Textbook_of_Hematology"><img id ="Hematology" width="55" height="250" alt="Hematology-cyan.jpg" class="bookChapter" src="/images/3/38/Hematology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Oncology" href="/index.php/The_WikiDoc_Living_Textbook_of_Oncology"><img id = "Oncology" width="66" height="250" alt="Oncology-cyan.jpg" class="bookChapter" src="/images/f/fa/Oncology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Gastroenterology" href="/index.php/The_WikiDoc_Living_Textbook_of_Gastroenterology"><img id = "Gastroenterology" width="61" height="250" alt="Gastroenterology-cyan.jpg" class="bookChapter" src="/images/4/4a/Gastroenterology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Kidney and Urologic Diseases" href="/index.php/The_WikiDoc_Living_Textbook_of_Kidney_and_Urologic_Diseases"><img id = "Nephrology" width="70" height="250" alt="Nephrology-cyan.jpg" class="bookChapter" src="/images/0/0b/Nephrology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Neurology" href="/index.php/The_WikiDoc_Living_Textbook_of_Neurology"><img id = "Neurology" width="44" height="250" alt="Neuro-cyan.jpg" class="bookChapter" src="/images/d/dd/Neuro-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Psychiatry" href="/index.php/The_WikiDoc_Living_Textbook_of_Psychiatry"><img id = "Psychiatry" width="64" height="250" alt="Psychiatry-cyan.jpg" class="bookChapter" src="/images/4/40/Psychiatry-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Endocrinology" href="/index.php/The_WikiDoc_Living_Textbook_of_Endocrinology"><img id = "Endocrinology" width="46" height="250" alt="Endocrinology-cyan.jpg" class="bookChapter" src="/images/7/7e/Endocrinology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Cardiology" href="/index.php/The_WikiDoc_Living_Textbook_of_Cardiology"><img id = "Cardiology" width="79" height="250" alt="Cardiology-cyan.jpg" class="bookChapter" src="/images/4/4c/Cardiology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Pulmonary Disease" href="/index.php/The_WikiDoc_Living_Textbook_of_Pulmonary_Disease"><img id = "Pulmonary" width="49" height="250" alt="Pulmonary-cyan.jpg" class="bookChapter" src="/images/0/04/Pulmonary-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Infectious Disease" href="/index.php/The_WikiDoc_Living_Textbook_of_Infectious_Disease"><img id = "Infectious Disease" width="51" height="250" alt="Infectious-disease-cyan.jpg" class="bookChapter" src="/images/2/27/Infectious-disease-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Pediatrics" href="/index.php/The_WikiDoc_Living_Textbook_of_Pediatrics"><img id = "Pediatrics" width="53" height="250" alt="Pediatrics-cyan.jpg" class="bookChapter" src="/images/9/90/Pediatrics-cyan.jpg"></a><a title="Category:Emergency medicine" href="/index.php/Category:Emergency_medicine"><img id = "Emergency Medicine" width="79" height="250" alt="Emergency-medicine-cyan.jpg" class="bookChapter" src="/images/1/1a/Emergency-medicine-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Otolaryngology" href="/index.php/The_WikiDoc_Living_Textbook_of_Otolaryngology"><img id = "ENT" width="64" height="250" alt="Ent-cyan.jpg" class="bookChapter" src="/images/3/3e/Ent-cyan.jpg"></a>
<a title="The WikiDoc Living Textbook of Hematology" href="/index.php/The_WikiDoc_Living_Textbook_of_Hematology"><img id ="Hematology" width="auto" height="auto" alt="Hematology-cyan.jpg" class="bookChapter" src="/images/3/38/Hematology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Oncology" href="/index.php/The_WikiDoc_Living_Textbook_of_Oncology"><img id = "Oncology" width="auto" height="auto" alt="Oncology-cyan.jpg" class="bookChapter" src="/images/f/fa/Oncology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Gastroenterology" href="/index.php/The_WikiDoc_Living_Textbook_of_Gastroenterology"><img id = "Gastroenterology" width="auto" height="auto" alt="Gastroenterology-cyan.jpg" class="bookChapter" src="/images/4/4a/Gastroenterology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Kidney and Urologic Diseases" href="/index.php/The_WikiDoc_Living_Textbook_of_Kidney_and_Urologic_Diseases"><img id = "Nephrology" width="auto" height="auto" alt="Nephrology-cyan.jpg" class="bookChapter" src="/images/0/0b/Nephrology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Neurology" href="/index.php/The_WikiDoc_Living_Textbook_of_Neurology"><img id = "Neuro" width="auto" height="auto" alt="Neuro-cyan.jpg" class="bookChapter" src="/images/d/dd/Neuro-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Psychiatry" href="/index.php/The_WikiDoc_Living_Textbook_of_Psychiatry"><img id = "Psych" width="auto" height="auto" alt="Psychiatry-cyan.jpg" class="bookChapter" src="/images/4/40/Psychiatry-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Endocrinology" href="/index.php/The_WikiDoc_Living_Textbook_of_Endocrinology"><img id = "Endocrinology" width="auto" height="auto" alt="Endocrinology-cyan.jpg" class="bookChapter" src="/images/7/7e/Endocrinology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Cardiology" href="/index.php/The_WikiDoc_Living_Textbook_of_Cardiology"><img id = "Cardiology" width="auto" height="auto" alt="Cardiology-cyan.jpg" class="bookChapter" src="/images/4/4c/Cardiology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Pulmonary Disease" href="/index.php/The_WikiDoc_Living_Textbook_of_Pulmonary_Disease"><img id = "Pulmonary" width="auto" height="auto" alt="Pulmonary-cyan.jpg" class="bookChapter" src="/images/0/04/Pulmonary-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Infectious Disease" href="/index.php/The_WikiDoc_Living_Textbook_of_Infectious_Disease"><img id = "InfectiousDisease" width="auto" height="auto" alt="Infectious-disease-cyan.jpg" class="bookChapter" src="/images/2/27/Infectious-disease-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Pediatrics" href="/index.php/The_WikiDoc_Living_Textbook_of_Pediatrics"><img id = "Pediatrics" width="auto" height="auto" alt="Pediatrics-cyan.jpg" class="bookChapter" src="/images/9/90/Pediatrics-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Emergency Medicine" href="/index.php/The_WikiDoc_Living_Textbook_of_Emergency_Medicine"><img id = "EmergencyMedicine" width="auto" height="auto" alt="Emergency-medicine-cyan.jpg" class="bookChapter" src="/images/1/1a/Emergency-medicine-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Otolaryngology" href="/index.php/The_WikiDoc_Living_Textbook_of_Otolaryngology"><img id = "ENT" width="auto" height="auto" alt="Ent-cyan.jpg" class="bookChapter" src="/images/3/3e/Ent-cyan.jpg"></a>
</div>
</div>


</includeonly>
</includeonly>

Latest revision as of 15:53, 2 July 2020

 Dynamic Bookshelf on Wikidoc