PageSourceSearch

https://eyerounds.org/js/mainIndexSpotLight.js

js eyerounds.org collected 2026-10-02 14:30:14 UTC 10,517 bytes, 134 lines download raw bytes

1
2// This script is soley to populate the Publication SpotLight Fields on the indexed.htm page
3
4// {name:"condition682", imgSrc:"https://eyerounds.org/atlas/pages/imgs/R_3Poq7vALFX7NPpl_Blood%20staining.jpg", src:"https://eyerounds.org/atlas/pages/Corneal_Blood_Staining.html", title:"Corneal Blood Staining", cat: ['cornea', 'ex_disease'], year : [2024], searched: true, yearInclude: true, catInclude: true, numOfImages: 1, keyWords: ['mansoor', 'troyer', 'cornea', 'blood staining', 'hyphema'], foundInSearch : false},
5
6/*
7{type : "Atlas", title: "Corneal Blood Staining", authors: "Mansoor M", linkURL: "https://eyerounds.org/atlas/pages/Corneal_Blood_Staining.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_3Poq7vALFX7NPpl_Blood%20staining.jpg", displayed:false},
8
9    {type : "Atlas", title: "Coats Disease", authors: "Mansoor M", linkURL: "https://eyerounds.org/atlas/pages/Coats_Disease.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_6Hh2iyq1pqj36ru_Coats%20disease.jpg", displayed:false},
10
11    {type : "Atlas", title: "Conductive Keratoplasty", authors: "Mansoor M", linkURL: "https://eyerounds.org/atlas/pages/Conductive_Keratoplasty.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_7dhuIxpQtR0wgPL_CK1.jpg", displayed:false},
12
13    {type : "Atlas", title: "Retained Lens Fragment", authors: "Mansoor M", linkURL: "https://eyerounds.org/atlas/pages/Retained_Lens_Fragment_.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_16hBs75OJXMshhv_Slide1.jpg", displayed:false},
14
15    {type : "Atlas", title: "Iris coloboma", authors: "Mansoor M", linkURL: "https://eyerounds.org/atlas/pages/Iris_coloboma.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_3sgZa2cgWEBiXkq_Iris%20coloboma1.png", displayed:false},
16
17    {type : "Atlas", title: "Iridoschisis", authors: "Mansoor M", linkURL: "https://eyerounds.org/atlas/pages/Iridoschisis_2.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_1luyQuwDL3wkJJ2_iridoschisis1.png", displayed:false},
18
19    {type : "Atlas", title: "Acute Retinal Necrosis", authors: "Mansoor M", linkURL: "https://eyerounds.org/atlas/pages/Acute_Retinal_Necrosis.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_3e5dpU77mkhr8x6_ARN.png", displayed:false},
20
21    {type : "Atlas", title: "Late Capsular Block with Posterior Capsular Fibrosis", authors: "Mansoor M", linkURL: "https://eyerounds.org/atlas/pages/Late_Capsular_Block_with_Posterior_Capsular_Fibrosis.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_3SwQ5vonCQtBgmo_capsule%20block.png", displayed:false},
22
23   
24
25    {type : "Atlas", title: "Retinal Oxalosis", authors: "Mansoor M; Bhuyan, R.", linkURL: "https://eyerounds.org/atlas/pages/Retinal_Oxalosis.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_1cXFg2asIK2Aqhe_retinal%20oxalosis.png", displayed:false},
26
27
28    {type : "Atlas", title: "Limbal Dermoid", authors: "Mansoor M", linkURL: "https://eyerounds.org/atlas/pages/Limbal_Dermoid.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_1dAMWcQgStYwziH_limbal%20dermoid%202.png", displayed:false},*/
29
30var entryArray = [
31    {type : "Atlas", title: "Focal Scleral Nodule", authors: "Lauren A. Tomlinson MD; Nicole A. Somani MD; Elaine M. Binkley MD", linkURL: "https://eyerounds.org/atlas/pages/Focal_Scleral_Nodule.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_1WCmzs1rCWcV0GG_Fig_1_Scleral_Nodule_OD.jpg", displayed:false},
32
33    {type : "Atlas", title: "Long Ciliary Nerve", authors: "Thomas D. Meram, MD and Thomas A. Oetting, MS, MD", linkURL: "https://webeye.ophth.uiowa.edu/eyeforum/atlas/pages/long-ciliary-nerve.html", imageURL:"https://webeye.ophth.uiowa.edu/eyeforum/atlas/pages/imgs/Prominent_LongCiliaryNerve.jpg", displayed:false},
34
35    {type : "Atlas", title: "Subluxated posterior chamber intraocular lens implant", authors: "Noor-Us-Sabah Ahmad, MD; Chad Y. Lewis, MD, MPH; Thomas A. Oetting, MS, MD", linkURL: "https://eyerounds.org/atlas/pages/Subluxated_posterior_chamber_intraocular_lens_implant.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/R_71TU3497v7BdshU_Screenshot%202025-06-19%20at%203.11.38%20PM.png", displayed:false},
36
37    {type : "Atlas", title: "Cataract with cortical vacuoles", authors: "Cy Lewis, MD, MPH; Bilal Ahmed, MD; Thomas A. Oetting, MS, MD", linkURL: "https://www.eyerounds.org/atlas/pages/Cataract_with_cortical_vacuoles.html", imageURL:"https://www.eyerounds.org/atlas/pages/imgs/R_72LiWNupg4z7mS5_vacuoles.png", displayed:false},
38
39    {type : "Atlas", title: "Capsular violation", authors: "Cy Lewis, MD; Bilal Ahmed, MD; Marc Toeteberg-Harms, MD", linkURL: "https://www.eyerounds.org/atlas/pages/Capsular_violation.html", imageURL:"https://www.eyerounds.org/atlas/pages/imgs/R_5qCz88csmJ97i8x_corneal%20lac%20atlas%20pic.png", displayed:false},
40
41    {type : "Atlas", title: "Pentosan Polysulfate Maculopathy", authors: "Joanna I.M. Silverman, MD, Brian P. Young, Elliott H. Sohn, MD, FASRS, FARVO", linkURL: "https://eyerounds.org/atlas/pages/Pentosan_Polysulfate_Maculopathy.htm", imageURL:"https://eyerounds.org/atlas/pages/imgs/Pentosan_Polysulfate_Maculopathy_fundus_photo_OU.png", displayed:false},
42
43    {type : "Atlas", title: "Retinal Arterial Venous Malformation", authors: "Lauren A. Tomlinson, MD;
43 Jonathan F. Russell, MD, PhD; and Ryan J. Diel MD", linkURL: "https://eyerounds.org/atlas/pages/retinal_arterial_venous_malformation.htm", imageURL:"https://eyerounds.org/atlas/pages/imgs/retinal_arterial_venous_malformation_OD_AVM.jpg", displayed:false},
44
45    {type : "Atlas", title: "Myelinated nerve fiber layer", authors: "Caitlin Hackl MD, Jonathan Trejo MD, Thomas Oetting MD ", linkURL: "https://eyerounds.org/atlas/pages/myelinated-NFL.htm", imageURL:"https://eyerounds.org/atlas/photos/myelinated-NFL-A-BC.jpg", displayed:false},
46
47   
48
49    {type : "Atlas", title: "Hyperoleon", authors: "Ella Gehrke, MD and Ian C. Han, MD", linkURL: "https://eyerounds.org/atlas/pages/hyperoleon.htm", imageURL:"https://eyerounds.org/atlas/pages/imgs/hyperoleon2.jpg", displayed:false},
50
51
52    {type : "Atlas", title: "Crystalline Lens Subluxation With Absence of Zonules", authors: "Caitlin M. Hackl MD, Patrick J. Donegan MD, Ryan J. Diel MD", linkURL: "https://eyerounds.org/atlas/pages/Crystalline-Lens-Subluxation-Absence-Zonules.htm", imageURL:"https://eyerounds.org/atlas/pages/imgs/subluxation_1.webp", displayed:false},
53    //tmeplate line
54    // {type : "", title: "", authors: "", linkURL: "", imageURL:"", displayed:false},
55
56    {type : "Atlas", title: "Exposed Gore-Tex Suture With Inferotemporal Lens Dislocation", authors: "Caitlin M. Hackl MD, Patrick J. Donegan MD, Ryan J. Diel MD", linkURL: "https://eyerounds.org/atlas/pages/exposed-gore-tex-suture-inferotemporal-lens-dislocation.html", imageURL:"https://eyerounds.org/atlas/pages/imgs/gore_tex_3.webp", displayed:false},
57
58    {type : "Case", title: "Electrocution Induced Cataracts and Macular Hole", authors: "Heinzman, BA; Trejo, J.; Silverman, J.I.M.; Haugsdal, J.M.", linkURL: "https://eyerounds.org/cases/357-electrocution-induced-cataract.htm", imageURL:"https://eyerounds.org/cases-i/case357/Fig1.png", displayed:false},
59
60     {type : "Case", title: "Ocular Ischemic Syndrome in a patient with background Diabetic Retinopathy: Distinguishing Features", authors: "Shepard, B.S.; Hendricks, T.M.; Boese, E.A.; Binkley, E.M.", linkURL: "https://eyerounds.org/cases/356-Ocular-Ischemic-Syndrome.htm", imageURL:"https://eyerounds.org/cases-i/case356/Fig1-Optos-wide-field-pseudo-color-fundus_corneal-edema_anterior-chamber-flare.png", displayed:false},
61
62     {type : "Case", title: "Hyphema", authors: "Hartness, E.; Garza Reyes, A.; Yu, C.; Sears, N.", linkURL: "https://eyerounds.org/cases/345-hyphema.htm", imageURL:"https://eyerounds.org/cases-i/case345/Fig1-external-hyphema-OS.png", displayed:false},
63
64   
65    
66
67  
68];
69
70
71
72function findRandomNumberInRange(highEnd){
73
74
75    return Math.floor(Math.random() * highEnd);
76
77}
78
79function loadSpotLightImages(){
80
81    
82    var spotLightContainer = document.getElementById("largeSpotlightContainer");
83
84    // console.log(spotLightContainer.innerHTML());
85
86
87    // change to 'i<5' expression to change the number of items displayed must be less than the size of the array !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
88
89    for(i=0; i <5; i++){
90
91        var testIndex = findRandomNumberInRange(entryArray.length);
92        
93     
94
95        while(entryArray[testIndex].displayed == true){
96            testIndex = findRandomNumberInRange(entryArray.length);
97           
98        }
99
100        entryArray[testIndex].displayed = true;
101        // id=\"condition" +(imageIndex+1) + "\"
102        // var htmlToInsert = '<div class="col-12  text-center"></div>';
103
104        $("<a class=\" spot-light_link \" href=\""+ entryArray[testIndex].linkURL + "\"><div class=\"col-12  text-center\" id=\"spotlightImage" +(i) + "\"><img class=\"px-3 img-fluid\" src=\""+entryArray[testIndex].imageURL + "\"/><strong><p class=\"pb-0  my-1\" style=\"line-height:1.0;\"> "+ entryArray[testIndex].type + " - " + entryArray[testIndex].title + "	</p></strong><p class=\"pb-0 mb-0 font-italic\" style=\"line-height:1.0;\"> "+ entryArray[testIndex].authors+ "	</p></div></a><hr class=\"w-100 bg-dark\"/>").appendTo("#largeSpotlightContainer");
105        
106        
107        // add second lined of code to insert in into mobile div
108
109        $("<div class=\"col-12 my-2 text-center\" id=\"mobilespotlightImage" +(i) + "\"><a class=\" spot-light_link \" href=\""+ entryArray[testIndex].linkURL + "\"><img class=\"px-3 img-fluid\" src=\""+entryArray[testIndex].imageURL + "\"/><strong><p class=\"pb-0  my-1\" style=\"line-height:1.0;\"> "+ entryArray[testIndex].type + " - " + entryArray[testIndex].title + "	</p></strong><p class=\"pb-0 mb-0 font-italic\" style=\"line-height:1.0;\"> "+ entryArray[testIndex].authors+ "	</p></a></div><hr class=\"w-100 bg-dark\"/>").appendTo("#mobile_spotlight");
110        
111			
112        // spotLightContainer.insertAdjacentHTML("afterend", htmlToInsert);
113
114      
115
116    }
117
118
119
120}
121/*
122<div class="col-12  text-center">
123			
124
125				<img src="index_images/spotlights/spotlight1-wall-2-14-22.jpg" alt="spotlight article" class=" p-3 img-fluid" />
126
127				<a class="spot-light_link" href="cases/301-MOG-optic-neuritis.htm">
128
129					<p>Atlas Entry - MOG-IgG Associated Optic Neuritis</p>
130
131					<p id="sl_authors_5">Diel RJ, Shah T, Kardon RH, Wall M. </p>
132
133		</a>
134	</div>*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.