diff --git a/docs/apply.md b/docs/apply.md new file mode 100644 index 0000000..a76654e --- /dev/null +++ b/docs/apply.md @@ -0,0 +1,76 @@ +
If your institution is interested in participating in the Lead Safe program, please fill-out the following application to the Chicago Department of Public Health. All applications must have a clinician and technical contact identified before application, meet the eligibility requirements and agree to the terms of service. Clinicians must be licensed doctors who will help their health network use Lead Safe as part of the hospital's daily operations. The technical contact should be able to work to connect electronic medical records to the Lead Safe API. If you have any questions, please contact HealthyHomes@cityofchicago.org.
+ + \ No newline at end of file diff --git a/docs/assets/images/favicon.png b/docs/assets/images/favicon.png index 84a406e..1325c62 100644 Binary files a/docs/assets/images/favicon.png and b/docs/assets/images/favicon.png differ diff --git a/docs/javascript/extra.js b/docs/javascript/extra.js new file mode 100644 index 0000000..3938627 --- /dev/null +++ b/docs/javascript/extra.js @@ -0,0 +1,110 @@ +window.onload = function(){ + crear_select(); +} + +var Navegador_ = (window.navigator.userAgent||window.navigator.vendor||window.opera), + Firfx = /Firefox/i.test(Navegador_), + Mobile_ = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(Navegador_), + FirfoxMobile = (Firfx && Mobile_); + +var li = new Array(); +function crear_select(){ +var div_cont_select = document.querySelectorAll("[data-mate-select='active']"); +var select_ = ''; +for (var e = 0; e < div_cont_select.length; e++) { +div_cont_select[e].setAttribute('data-indx-select',e); +div_cont_select[e].setAttribute('data-selec-open','false'); +var ul_cont = document.querySelectorAll("[data-indx-select='"+e+"'] > .cont_list_select_mate > ul"); + select_ = document.querySelectorAll("[data-indx-select='"+e+"'] >select")[0]; + if (Mobile_ || FirfoxMobile) { +select_.addEventListener('change', function () { + _select_option(select_.selectedIndex,e); +}); + } +var select_optiones = select_.options; +document.querySelectorAll("[data-indx-select='"+e+"'] > .selecionado_opcion ")[0].setAttribute('data-n-select',e); +document.querySelectorAll("[data-indx-select='"+e+"'] > .icon_select_mate ")[0].setAttribute('data-n-select',e); +for (var i = 0; i < select_optiones.length; i++) { +li[i] = document.createElement('li'); +if (select_optiones[i].selected == true || select_.value == select_optiones[i].innerHTML ) { +li[i].className = 'active'; +document.querySelector("[data-indx-select='"+e+"'] > .selecionado_opcion ").innerHTML = select_optiones[i].innerHTML; +}; +li[i].setAttribute('data-index',i); +li[i].setAttribute('data-selec-index',e); +// funcion click al selecionar +li[i].addEventListener( 'click', function(){ _select_option(this.getAttribute('data-index'),this.getAttribute('data-selec-index')); }); + +li[i].innerHTML = select_optiones[i].innerHTML; +ul_cont[0].appendChild(li[i]); + + }; // Fin For select_optiones + }; // fin for divs_cont_select +} // Fin Function + + + +var cont_slc = 0; +function open_select(idx){ +var idx1 = idx.getAttribute('data-n-select'); + var ul_cont_li = document.querySelectorAll("[data-indx-select='"+idx1+"'] .cont_select_int > li"); +var hg = 0; +var slect_open = document.querySelectorAll("[data-indx-select='"+idx1+"']")[0].getAttribute('data-selec-open'); +var slect_element_open = document.querySelectorAll("[data-indx-select='"+idx1+"'] select")[0]; + if (Mobile_ || FirfoxMobile) { + if (window.document.createEvent) { // All + var evt = window.document.createEvent("MouseEvents"); + evt.initMouseEvent("mousedown", false, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); + slect_element_open.dispatchEvent(evt); +} else if (slect_element_open.fireEvent) { // IE + slect_element_open.fireEvent("onmousedown"); +} +}else { + + + for (var i = 0; i < ul_cont_li.length; i++) { +hg += ul_cont_li[i].offsetHeight; +}; + if (slect_open == 'false') { + document.querySelectorAll("[data-indx-select='"+idx1+"']")[0].setAttribute('data-selec-open','true'); + document.querySelectorAll("[data-indx-select='"+idx1+"'] > .cont_list_select_mate > ul")[0].style.height = hg+"px"; + document.querySelectorAll("[data-indx-select='"+idx1+"'] > .icon_select_mate")[0].style.transform = 'rotate(180deg)'; +}else{ + document.querySelectorAll("[data-indx-select='"+idx1+"']")[0].setAttribute('data-selec-open','false'); + document.querySelectorAll("[data-indx-select='"+idx1+"'] > .icon_select_mate")[0].style.transform = 'rotate(0deg)'; + document.querySelectorAll("[data-indx-select='"+idx1+"'] > .cont_list_select_mate > ul")[0].style.height = "0px"; + } +} + +} // fin function open_select + +function salir_select(indx){ +var select_ = document.querySelectorAll("[data-indx-select='"+indx+"'] > select")[0]; + document.querySelectorAll("[data-indx-select='"+indx+"'] > .cont_list_select_mate > ul")[0].style.height = "0px"; +document.querySelector("[data-indx-select='"+indx+"'] > .icon_select_mate").style.transform = 'rotate(0deg)'; + document.querySelectorAll("[data-indx-select='"+indx+"']")[0].setAttribute('data-selec-open','false'); +} + + +function _select_option(indx,selc){ + if (Mobile_ || FirfoxMobile) { +selc = selc -1; +} + var select_ = document.querySelectorAll("[data-indx-select='"+selc+"'] > select")[0]; + + var li_s = document.querySelectorAll("[data-indx-select='"+selc+"'] .cont_select_int > li"); + var p_act = document.querySelectorAll("[data-indx-select='"+selc+"'] > .selecionado_opcion")[0].innerHTML = li_s[indx].innerHTML; +var select_optiones = document.querySelectorAll("[data-indx-select='"+selc+"'] > select > option"); +for (var i = 0; i < li_s.length; i++) { +if (li_s[i].className == 'active') { +li_s[i].className = ''; +}; +li_s[indx].className = 'active'; + +}; +select_optiones[indx].selected = true; + select_.selectedIndex = indx; + select_.onchange(); + salir_select(selc); +} + diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 0000000..c2a4cbb --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,47 @@ +.selector { + position: relative; + float: left; + min-height: 60px; + box-shadow: 1px 2px 10px -2px rgba(0,0,0,0.3); + border-radius: 3px; + font-size: 16px; + margin-left: 10px; + padding-left: 10px; +} + +.apply-form-subsection { + padding-left: 10%; +} + + +/* Material Icons */ + +.material-icons { + font-size: 36px; + color: #757575; + position: relative; + top: 10px; + margin-right: 10px; + padding-bottom: 10px +} + +.apply-placeholder { + font-size: 16px; + display: inline-block; + min-width: 200px; + width: 50%; + border-bottom: 1px solid #DCDCDC; + box-sizing: border-box; +} + +.btn { + background-color: #EF5350; + font-size: 16px; + color: #fff; + border-radius: 8px; + display: inline-block; + padding: 15px 32px; + text-decoration: none; + border: none; + cursor: pointer +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index ec59edd..4a2a214 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,6 +8,7 @@ site_url: http://dev.cityofchicago.org/docs/lead-free # Page Tree pages: - Home: index.md +- 'Apply for Lead Safe': 'apply.md' # Copyright copyright: Copyright © 2016-2017 City of Chicago and licensed under Creative Commons Attribution-ShareAlike 4.0 International. @@ -22,8 +23,8 @@ site_favicon: 'assets/images/favicon.png' extra: logo: 'assets/images/city-seal-inverse-small.png' palette: - primary: 'blue grey' - accent: 'light blue' + primary: 'blue' + accent: 'red' social: - type: 'twitter' link: 'https://twitter.com/ChicagoCDO' @@ -33,6 +34,10 @@ extra: link: 'mailto:developers@cityofchicago.org' - type: 'home' link: 'http://dev.cityofchicago.org' +extra_css: + - 'stylesheets/extra.css' +extra_javascript: + - 'javascripts/extra.js' # Google Analytics # google_analytics: