done
This commit is contained in:
+123
-68
@@ -1,68 +1,123 @@
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.pie{
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/*ul li{
|
||||
color: #909090;
|
||||
margin-left: 5%;
|
||||
margin-top: 1em;
|
||||
}*/
|
||||
|
||||
a:link{
|
||||
color: #909090;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:visited{
|
||||
color: #909090;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul li a:hover{
|
||||
color: #cb0404;
|
||||
transition-duration: .5s;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.social{
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
.espacio {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
|
||||
.carac small{
|
||||
color: #008000;
|
||||
}
|
||||
.carac {
|
||||
color: #333333;
|
||||
}
|
||||
.carac h2{
|
||||
color: #f42434;
|
||||
}
|
||||
|
||||
.carac h4{
|
||||
color: #f42434;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.bordes {
|
||||
border: 1px solid #eaeaea;
|
||||
|
||||
}
|
||||
|
||||
.bordes2 {
|
||||
background: #f8f8f8;
|
||||
}
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.pie {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
/*ul li{
|
||||
color: #909090;
|
||||
margin-left: 5%;
|
||||
margin-top: 1em;
|
||||
}*/
|
||||
|
||||
a:link {
|
||||
color: #909090;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #909090;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul li a:hover {
|
||||
color: #cb0404;
|
||||
transition-duration: .5s;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.social {
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
.espacio {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.carac small {
|
||||
color: #008000;
|
||||
}
|
||||
|
||||
.carac {
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.carac h2 {
|
||||
color: #f42434;
|
||||
}
|
||||
|
||||
.carac h4 {
|
||||
color: #f42434;
|
||||
}
|
||||
|
||||
.bordes {
|
||||
border: 1px solid #eaeaea;
|
||||
}
|
||||
|
||||
.bordes2 {
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
.espacio-bl .row {
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/** stilos para comite-editorial.html*/
|
||||
div.panel-default >div.panel-heading {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
div.panel-default >div.panel-heading >h4 {
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
padding: 0px !important;
|
||||
}
|
||||
|
||||
div.panel-default >div.panel-heading >h4>a {
|
||||
padding: 10px !important;
|
||||
display: block;
|
||||
color: #337ab7;
|
||||
}
|
||||
|
||||
div.panel-default >div.panel-heading >h4>a:hover {
|
||||
color: #023867;
|
||||
}
|
||||
|
||||
div.panel-default >div.panel-collapse {
|
||||
padding-left: 3%;
|
||||
padding-right: 3%;
|
||||
}
|
||||
|
||||
div.panel-default >div.panel-collapse >div.panel-body > ul {
|
||||
padding-left: 4%;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
div.panel-default >div.panel-collapse >div.panel-body > ul> li>ul {
|
||||
padding-left: 3%;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
div.panel-default >div.panel-collapse >div.panel-body > p {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.lista-sin-punto >li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.lista-con-espacio >li {
|
||||
margin-left: 4%;
|
||||
}
|
||||
/** stilos para comite-editorial.html*/
|
||||
|
||||
/*los estilos del pdf los pase al style_body2---no te vayas a espantar walter XD*/
|
||||
+209
-53
@@ -1,25 +1,27 @@
|
||||
.thumbnail{
|
||||
.thumbnail {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.titulo{
|
||||
border-bottom: 1px solid #9f9b9b;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.leermas{
|
||||
display: none;
|
||||
|
||||
.titulo {
|
||||
border-bottom: 1px solid #9f9b9b;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
.imagen{
|
||||
|
||||
.leermas {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.imagen {
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.mask-slider{
|
||||
display: none;
|
||||
}
|
||||
.imagen:hover .mask-slider{
|
||||
|
||||
.mask-slider {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.imagen:hover .mask-slider {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 25%;
|
||||
@@ -27,6 +29,8 @@
|
||||
text-align: center;
|
||||
transform: translatey(112px);
|
||||
}
|
||||
|
||||
|
||||
/*.imagen:hover .mask>.leermas{
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
@@ -37,61 +41,69 @@
|
||||
padding: 7px 14px;
|
||||
|
||||
}*/
|
||||
|
||||
.imagen:hover .mask-slider a span{
|
||||
border-left: .5px groove #fff;
|
||||
font-size: 22px;
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
color: white;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.product-slider-a span:hover{
|
||||
background-color: rgba(255, 0, 0, 0.8);
|
||||
border-left: .5px groove #fff;
|
||||
font-size: 22px;
|
||||
color: white;
|
||||
}
|
||||
.caption{
|
||||
|
||||
.imagen:hover .mask-slider a span {
|
||||
border-left: .5px groove #fff;
|
||||
font-size: 22px;
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
color: white;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.product-slider-a span:hover {
|
||||
background-color: rgba(255, 0, 0, 0.8);
|
||||
border-left: .5px groove #fff;
|
||||
font-size: 22px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.caption {
|
||||
text-align: center;
|
||||
}
|
||||
.subtitulo{
|
||||
|
||||
.subtitulo {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#uno{
|
||||
#uno {
|
||||
background-image: url(http://www.libros.unam.mx/media//cuentacuento.jpg);
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size:cover;
|
||||
background-size: cover;
|
||||
}
|
||||
#dos{
|
||||
|
||||
#dos {
|
||||
background-image: url(http://www.libros.unam.mx/media//banner-LA-art-book.jpg);
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size:cover;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
#tres{
|
||||
#tres {
|
||||
background-image: url(http://www.libros.unam.mx/media//fil.jpg);
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size:cover;
|
||||
background-size: cover;
|
||||
}
|
||||
#cuatro{
|
||||
|
||||
#cuatro {
|
||||
background-image: url(http://www.libros.unam.mx/media//banner-distrito.jpg);
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size:cover;
|
||||
background-size: cover;
|
||||
}
|
||||
/*.......................*/
|
||||
|
||||
|
||||
/*.......................*/
|
||||
|
||||
|
||||
/** Carousel **/
|
||||
.jcarousel{
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.jcarousel {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.jcarousel ul {
|
||||
width: 40000em;
|
||||
position: relative;
|
||||
@@ -100,25 +112,27 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
.jcarousel li {
|
||||
float: left;
|
||||
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
|
||||
/** Carousel Controls **/
|
||||
|
||||
.jcarousel-control-prev,
|
||||
.jcarousel-control-next {
|
||||
background-color: black;
|
||||
background-color: black;
|
||||
padding: 5px 10px;
|
||||
font-size: 20px;
|
||||
}
|
||||
.jcarousel-control-prev:hover,
|
||||
.jcarousel-control-next:hover{
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.jcarousel-control-prev:hover,
|
||||
.jcarousel-control-next:hover {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.jcarousel-control-prev {
|
||||
color: white;
|
||||
left: 15px;
|
||||
@@ -128,3 +142,145 @@ background-color: black;
|
||||
color: white;
|
||||
right: 15px;
|
||||
}
|
||||
|
||||
|
||||
/** Comite-editorial-interno LINEAMIENTOS ESTILOS **/
|
||||
|
||||
.margen-panel-body {
|
||||
padding-left: 50px !important;
|
||||
}
|
||||
|
||||
.margen-h-body {
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.margen-super-body {
|
||||
padding-left: 60px;
|
||||
}
|
||||
|
||||
.none-style {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.none-style:hover,
|
||||
.none-style:focus,
|
||||
.none-style:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.none-style:focus {
|
||||
outline-style: none;
|
||||
}
|
||||
|
||||
.margen-panel-body {
|
||||
padding-left: 50px;
|
||||
}
|
||||
|
||||
|
||||
/* PDFObject automatically assigns the class name "pdfobject" to the <embed> element */
|
||||
|
||||
|
||||
/*
|
||||
PDFObject appends the classname "pdfobject-container" to the target element.
|
||||
This enables you to style the element differently depending on whether the embed was successful.
|
||||
*/
|
||||
|
||||
.pdfobject-container {
|
||||
top: 20px;
|
||||
margin-left: 11%;
|
||||
position: fixed;
|
||||
width: 70%;
|
||||
height: 600px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
|
||||
/* PDFObject automatically assigns the class name "pdfobject" to the <embed> element */
|
||||
|
||||
.pdfobject {
|
||||
border: solid 1px #666;
|
||||
}
|
||||
|
||||
#lineamientos {
|
||||
float: right;
|
||||
padding: .8%;
|
||||
visibility: visible;
|
||||
margin-top: 1%;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#lineamientos-2 {
|
||||
float: right;
|
||||
padding: .8%;
|
||||
visibility: hidden;
|
||||
margin-top: .1%;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#lineamiento-header {
|
||||
width: 80%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@media (max-width:700px) {
|
||||
#lineamiento-header {
|
||||
width: 80% !important;
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
}
|
||||
#lineamientos {
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
margin-top: 1%;
|
||||
}
|
||||
#lineamientos-2 {
|
||||
visibility: visible;
|
||||
display: inline-block;
|
||||
margin-top: 1%;
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:341px) {
|
||||
#lineamientos,
|
||||
#lineamientos-2 {
|
||||
margin-top: 10%;
|
||||
}
|
||||
#lineamiento-header {
|
||||
margin-bottom: 10%;
|
||||
}
|
||||
}
|
||||
|
||||
#pdf_view {
|
||||
padding: 5% 10% 3% 5%;
|
||||
background-color: rgba(0, 0, 0, 0.74);
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#cerrar >button {
|
||||
height: inherit;
|
||||
width: inherit;
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 50%;
|
||||
background-color: rgba(72, 68, 68, 0.15);
|
||||
border-color: rgba(72, 68, 68, 0.15);
|
||||
!important;
|
||||
}
|
||||
|
||||
#cerrar {
|
||||
height: 50px;
|
||||
width: 40px;
|
||||
position: absolute;
|
||||
z-index: 10000;
|
||||
right: .5%;
|
||||
top: .10%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
+12
-1
@@ -47,7 +47,18 @@ footer li {
|
||||
}
|
||||
.footer2 {
|
||||
background: #282828;
|
||||
color: #666666;
|
||||
color: #aaaaaa;
|
||||
font-size: 13px;
|
||||
}
|
||||
.footer2 a {
|
||||
color: #4c6cd8;
|
||||
}
|
||||
.footer2 a:hover, a:focus{
|
||||
|
||||
color: #d3430e;
|
||||
}
|
||||
.footer3 {
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
|
||||
+92
-92
@@ -1,93 +1,93 @@
|
||||
html {}
|
||||
|
||||
header {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
height: auto;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.top-links {
|
||||
width: 100%;
|
||||
background: #454545;
|
||||
border-bottom: 4px solid #cccccc;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
|
||||
.quitar-border {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
.welcome-msg {
|
||||
font-size: 12px;
|
||||
color: #aaa;
|
||||
float: left;
|
||||
border-right: 1px #999 solid;
|
||||
padding-left: 28px;
|
||||
}
|
||||
|
||||
.toplinks {
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
float: right;
|
||||
margin-left: 15px;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.iconos {
|
||||
font-size: 13px;
|
||||
padding-right: 6px;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.super {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-nav > .lista > .overscroll{
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-nav > .lista > .overscroll:hover{
|
||||
color: #f42434;
|
||||
transition-duration: .4s;
|
||||
}
|
||||
|
||||
.lista{
|
||||
text-shadow: none !important;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.loggin {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 998px) {
|
||||
.welcome-msg {
|
||||
font-size: 0px;
|
||||
border-right: none;
|
||||
height: 0;
|
||||
}
|
||||
/*.resp > li {
|
||||
border-right: none;
|
||||
text-shadow: none !important;
|
||||
font-size: 12px;
|
||||
border-right: 1px #999 solid;
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
.icono-collaps {
|
||||
float:none !important;
|
||||
border-color:#454545 !important;
|
||||
|
||||
}
|
||||
|
||||
.resp1 {
|
||||
padding: 0px 12px 0px 12px;
|
||||
}
|
||||
.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
|
||||
background-color: #454545;
|
||||
html {}
|
||||
|
||||
header {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
height: auto;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.top-links {
|
||||
width: 100%;
|
||||
background: #454545;
|
||||
border-bottom: 4px solid #cccccc;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
|
||||
.quitar-border {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
.welcome-msg {
|
||||
font-size: 12px;
|
||||
color: #aaa;
|
||||
float: left;
|
||||
border-right: 1px #999 solid;
|
||||
padding-left: 28px;
|
||||
}
|
||||
|
||||
.toplinks {
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
float: right;
|
||||
margin-left: 15px;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.iconos {
|
||||
font-size: 13px;
|
||||
padding-right: 6px;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.super {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-nav > .lista > .overscroll{
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-nav > .lista > .overscroll:hover{
|
||||
color: #f42434;
|
||||
transition-duration: .4s;
|
||||
}
|
||||
|
||||
.lista{
|
||||
text-shadow: none !important;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.loggin {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 998px) {
|
||||
.welcome-msg {
|
||||
font-size: 0px;
|
||||
border-right: none;
|
||||
height: 0;
|
||||
}
|
||||
/*.resp > li {
|
||||
border-right: none;
|
||||
text-shadow: none !important;
|
||||
font-size: 12px;
|
||||
border-right: 1px #999 solid;
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
.icono-collaps {
|
||||
float:none !important;
|
||||
border-color:#454545 !important;
|
||||
|
||||
}
|
||||
|
||||
.resp1 {
|
||||
padding: 0px 12px 0px 12px;
|
||||
}
|
||||
.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
|
||||
background-color: #454545;
|
||||
}
|
||||
+119
-170
@@ -1,56 +1,16 @@
|
||||
div.container-fluid a:hover {
|
||||
background: rgba(0, 0, 0, 0.9) !important;
|
||||
transition-duration: 1s;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
|
||||
.botton-hamburguer {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
div.nav-menu-principal {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
#bs-example-navbar {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
li.dropdown > ul.dropdown-menu {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
nav.navbar-principal ul.container {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
|
||||
}
|
||||
div.nav-menu-principal >ul.navbar-nav>li>a{
|
||||
color: #333 ;
|
||||
}
|
||||
div.nav-menu-principal >ul.navbar-nav>li{
|
||||
border-right: 1px solid #d4d3d3;
|
||||
}
|
||||
ul.dropdown-menu {
|
||||
width: 1070px;
|
||||
height: auto;
|
||||
left: -130px;
|
||||
}
|
||||
ul.dropdown-menu li {
|
||||
display: inline-block;
|
||||
width: 530px;
|
||||
height: 70px;
|
||||
}
|
||||
ul.dropdown-menu >li >a{
|
||||
width: 490px;
|
||||
height: 70px;
|
||||
align-content: center;
|
||||
padding-left: 30%;
|
||||
padding-top: 5%;
|
||||
}
|
||||
|
||||
nav.navbar-principal {
|
||||
overflow: none;
|
||||
background-color: transparent;
|
||||
border-bottom: 4px solid #101010 !important;
|
||||
border-left: none;
|
||||
@@ -59,70 +19,45 @@ nav.navbar-principal {
|
||||
margin: 0px;
|
||||
margin-bottom: 15px;
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
|
||||
#bs-example-navbar > li.dropdown > a.dropdown-toggle >span{
|
||||
visibility: hidden;
|
||||
}
|
||||
ul.container ul li{
|
||||
color: blue !important;
|
||||
|
||||
}
|
||||
|
||||
nav.navbar-principal > div {
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
|
||||
/*modificación de fausto*/
|
||||
|
||||
table.table {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
table.table tr {
|
||||
font-size: 12px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
height: 40px;
|
||||
background: none;
|
||||
color: white;
|
||||
}
|
||||
|
||||
table.table>tbody>tr>td,
|
||||
table.table>tbody>tr>th,
|
||||
table.table>tfoot>tr>td,
|
||||
table.table>tfoot>tr>th {
|
||||
border: 0;
|
||||
padding-left: 180px;
|
||||
}
|
||||
|
||||
.table>thead>tr>td,
|
||||
.table>thead>tr>th {
|
||||
border-bottom: 1px solid grey;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
<link rel="stylesheet" href="css/style_footer.css" .table>tfoot>tr>td,
|
||||
.table>tfoot>tr>th {
|
||||
border-bottom: 1px solid grey;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
/* //modificación de fausto*/
|
||||
|
||||
.form-control {
|
||||
div.nav-menu-principal >ul.navbar-nav>li>a {
|
||||
color: #333;
|
||||
background: #f1f1f1;
|
||||
}
|
||||
div.nav-menu-principal >ul.navbar-nav>li {
|
||||
border-right: 1px solid #d4d3d3;
|
||||
}
|
||||
|
||||
div.nav-menu-principal {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
nav.navbar-principal a:hover {
|
||||
background: rgba(0, 0, 0, 0.9) !important;
|
||||
transition-duration: 1s;
|
||||
color: white !important;
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
|
||||
div.nav-menu-principal ul.navbar-nav > li.dropdown > a.dropdown-toggle >span {
|
||||
float: right;
|
||||
margin-left: 50px;
|
||||
}
|
||||
|
||||
input.form-control {
|
||||
color: #333;
|
||||
background: rgba(242, 242, 242, 0.25);
|
||||
border: none;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.navbar-toggle {
|
||||
float: left !important;
|
||||
}
|
||||
|
||||
#custom-search-input {
|
||||
margin: 0;
|
||||
margin-top: 10px;
|
||||
@@ -161,40 +96,6 @@ table.table>tfoot>tr>th {
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.botton-hamburguer {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
visibility: visible;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
nav.navbar-principal {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
|
||||
.navbar-collapse.collapse {
|
||||
display: none!important;
|
||||
}
|
||||
.collapse.in {
|
||||
display: block !important;
|
||||
}
|
||||
#bs-example-navbar > li.dropdown > a.dropdown-toggle >span{
|
||||
float: right;
|
||||
visibility: visible;
|
||||
}
|
||||
#custom-search-input {
|
||||
/*barra de busqueda */
|
||||
margin: 0;
|
||||
margin-top: 10px;
|
||||
padding: 0;
|
||||
width: 300px;
|
||||
height: 30%;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 408px) {
|
||||
#custom-search-input {
|
||||
/* barra de busqueda */
|
||||
@@ -207,45 +108,93 @@ table.table>tfoot>tr>th {
|
||||
}
|
||||
}
|
||||
|
||||
table.table a {
|
||||
color: white;
|
||||
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
li.dropdown > ul.dropdown-menu {
|
||||
position: absolute;
|
||||
width: 800px;
|
||||
height: auto;
|
||||
left: -150px;
|
||||
background-color: rgba(0, 0, 0, 0.81);
|
||||
|
||||
}
|
||||
li.dropdown > ul.dropdown-menu li {
|
||||
width: 45%;
|
||||
height: 50px;
|
||||
display: inline-block;
|
||||
color: white;
|
||||
margin-left: 4%;
|
||||
padding-top: 2%;
|
||||
|
||||
|
||||
}
|
||||
li.dropdown > ul.dropdown-menu >li >a {
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
||||
color: rgba(255, 254, 254, 0.83);
|
||||
}
|
||||
li.dropdown > ul.dropdown-menu >li.active>a{
|
||||
background-color: white;
|
||||
color:black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*Salomon*/
|
||||
|
||||
.fondo1 {
|
||||
background: #14b1a6;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.fondo2 {
|
||||
background: #e50446;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.fondo3 {
|
||||
background: #97c11f;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.margen {
|
||||
border: 2px dotted white;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
/*Salomon*/
|
||||
|
||||
.espacio {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.espacio h2 {
|
||||
color: white;
|
||||
@media (max-width: 1200px) {
|
||||
li.dropdown > ul.dropdown-menu {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
box-shadow: none;
|
||||
}
|
||||
li.dropdown > ul.dropdown-menu >li >a {
|
||||
|
||||
align-content: center;
|
||||
padding-left: 20%;
|
||||
padding-top: .7%;
|
||||
}
|
||||
li.dropdown > ul.dropdown-menu >li.active>a{
|
||||
background-color: #777;
|
||||
color:black;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.container >nav.navbar-default >.navbar-header {
|
||||
float: none;
|
||||
}
|
||||
div.container >nav.navbar >div.navbar-header> button.navbar-toggle {
|
||||
display: block !important;
|
||||
}
|
||||
div.container >nav.navbar >div.navbar-header {
|
||||
display: inline-block!important;
|
||||
}
|
||||
div.container >nav.navbar-default >.navbar-collapse {
|
||||
border-top: 1px solid transparent;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
nav.navbar-default >.navbar-collapse.collapse {
|
||||
display: none!important;
|
||||
}
|
||||
nav.navbar-default >div.navbar-collapse > ul.navbar-nav {
|
||||
float: none!important;
|
||||
margin-top: 7.5px;
|
||||
height: auto ;
|
||||
}
|
||||
nav.navbar-default >div.navbar-collapse >.navbar-nav>li {
|
||||
float: none;
|
||||
}
|
||||
nav.navbar-default >div.navbar-collapse >.navbar-nav>li>a {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
nav.navbar-default >.collapse.in {
|
||||
display: block !important;
|
||||
}
|
||||
nav.navbar-default >.navbar-collapse.in {
|
||||
overflow-y: auto !important;
|
||||
}
|
||||
div.nav-menu-principal >ul.navbar-nav > li.dropdown > a.dropdown-toggle >span {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
+10
-11
@@ -4,14 +4,13 @@ function cargar_css_del_tema(){
|
||||
|
||||
wp_enqueue_style("bootstrap", get_stylesheet_directory_uri(). "/css/bootstrap.min.css");
|
||||
wp_enqueue_style("style", get_stylesheet_directory_uri(). "/style.css");
|
||||
wp_enqueue_style( 'style_footer',get_stylesheet_directory_uri(). '/css/style_footer.css' );
|
||||
wp_enqueue_style( 'style_body2', get_stylesheet_directory_uri(). '/css/style_body2.css' );
|
||||
wp_enqueue_style( 'style_body4', get_stylesheet_directory_uri(). '/css/style_body4.css' );
|
||||
wp_enqueue_style( 'styles-navbar-principal', get_stylesheet_directory_uri(). '/css/styles-navbar-principal.css' );
|
||||
wp_enqueue_style( 'styles_slider', get_stylesheet_directory_uri(). '/css/styles_slider.css' );
|
||||
wp_enqueue_style( 'styles-navbar-toggle', get_stylesheet_directory_uri(). '/css/styles-navbar-toggle.css' );
|
||||
wp_enqueue_style( "styles-header", get_stylesheet_directory_uri(). "/css/styles-header.css" );
|
||||
wp_enqueue_style( "light", get_stylesheet_directory_uri(). "/css/light.css" );
|
||||
wp_enqueue_style("style_footer",get_stylesheet_directory_uri(). '/css/style_footer.css' );
|
||||
wp_enqueue_style("style_body2", get_stylesheet_directory_uri(). '/css/style_body2.css' );
|
||||
wp_enqueue_style("style_body4", get_stylesheet_directory_uri(). '/css/style_body4.css' );
|
||||
wp_enqueue_style("styles-navbar-principal", get_stylesheet_directory_uri(). '/css/styles-navbar-principal.css' );
|
||||
wp_enqueue_style("styles_slider", get_stylesheet_directory_uri(). '/css/styles_slider.css' );
|
||||
wp_enqueue_style("styles-header", get_stylesheet_directory_uri(). "/css/styles-header.css" );
|
||||
wp_enqueue_style("light", get_stylesheet_directory_uri(). "/css/light.css" );
|
||||
}
|
||||
|
||||
function cargar_js_del_tema(){
|
||||
@@ -22,12 +21,12 @@ function cargar_css_del_tema(){
|
||||
wp_enqueue_script("bryan-body2", get_stylesheet_directory_uri()."/js/bryan-body2.js");
|
||||
wp_enqueue_script("mityped", get_stylesheet_directory_uri()."/js/mityped.js");
|
||||
wp_enqueue_script("npm", get_stylesheet_directory_uri()."/js/npm.js");
|
||||
wp_enqueue_script("pdfobject", get_stylesheet_directory_uri()."/js/pdfobject.js");
|
||||
wp_enqueue_script("pdfobject1", get_stylesheet_directory_uri()."/js/pdfobject.min.js");
|
||||
wp_enqueue_script("typed", get_stylesheet_directory_uri()."/js/typed.js");
|
||||
}
|
||||
add_action("wp_enqueue_scripts","cargar_js_del_tema");
|
||||
add_action("wp_enqueue_scripts","cargar_css_del_tema");
|
||||
|
||||
|
||||
add_action("wp_enqueue_scripts","cargar_css_del_tema");
|
||||
|
||||
/* ***FIN***Funciones para cargar estilo y scripts */
|
||||
|
||||
|
||||
Vendored
+3
-3
File diff suppressed because one or more lines are too long
Vendored
+5
-5
File diff suppressed because one or more lines are too long
+29
-29
@@ -1,30 +1,30 @@
|
||||
$(function () {
|
||||
|
||||
$("#typed").typed({
|
||||
|
||||
stringsElement: $('#typed-strings'),
|
||||
typeSpeed: 40,
|
||||
backDelay: 1500,
|
||||
loop: true,
|
||||
contentType: 'html',
|
||||
loopCount: false,
|
||||
callback: function () {
|
||||
foo();
|
||||
},
|
||||
resetCallback: function () {
|
||||
newTyped();
|
||||
}
|
||||
});
|
||||
|
||||
$(".reset").click(function () {
|
||||
$("#typed").typed('reset');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function newTyped() {}
|
||||
|
||||
function foo() {
|
||||
console.log("Callback");
|
||||
}
|
||||
$(function () {
|
||||
|
||||
$("#typed").typed({
|
||||
|
||||
stringsElement: $('#typed-strings'),
|
||||
typeSpeed: 40,
|
||||
backDelay: 1500,
|
||||
loop: true,
|
||||
contentType: 'html',
|
||||
loopCount: false,
|
||||
callback: function () {
|
||||
foo();
|
||||
},
|
||||
resetCallback: function () {
|
||||
newTyped();
|
||||
}
|
||||
});
|
||||
|
||||
$(".reset").click(function () {
|
||||
$("#typed").typed('reset');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function newTyped() {}
|
||||
|
||||
function foo() {
|
||||
console.log("Callback");
|
||||
}
|
||||
|
||||
+254
@@ -0,0 +1,254 @@
|
||||
/*global ActiveXObject, window, console, define, module, jQuery */
|
||||
//jshint unused:false, strict: false
|
||||
|
||||
/*
|
||||
PDFObject v2.0.201604172
|
||||
https://github.com/pipwerks/PDFObject
|
||||
Copyright (c) 2008-2016 Philip Hutchison
|
||||
MIT-style license: http://pipwerks.mit-license.org/
|
||||
UMD module pattern from https://github.com/umdjs/umd/blob/master/templates/returnExports.js
|
||||
*/
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define([], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// Node. Does not work with strict CommonJS, but
|
||||
// only CommonJS-like environments that support module.exports,
|
||||
// like Node.
|
||||
module.exports = factory();
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
root.PDFObject = factory();
|
||||
}
|
||||
}(this, function () {
|
||||
|
||||
"use strict";
|
||||
//jshint unused:true
|
||||
|
||||
//PDFObject is designed for client-side (browsers), not server-side (node)
|
||||
//Will choke on undefined navigator and window vars when run on server
|
||||
//Return boolean false and exit function when running server-side
|
||||
|
||||
if(typeof window === "undefined" || typeof navigator === "undefined"){ return false; }
|
||||
|
||||
var pdfobjectversion = "2.0.201604172",
|
||||
supportsPDFs,
|
||||
|
||||
//declare functions
|
||||
createAXO,
|
||||
isIE,
|
||||
supportsPdfMimeType = (typeof navigator.mimeTypes['application/pdf'] !== "undefined"),
|
||||
supportsPdfActiveX,
|
||||
buildFragmentString,
|
||||
log,
|
||||
embedError,
|
||||
embed,
|
||||
getTargetElement,
|
||||
generatePDFJSiframe,
|
||||
isIOS = (function (){ return (/iphone|ipad|ipod/i.test(navigator.userAgent.toLowerCase())); })(),
|
||||
generateEmbedElement;
|
||||
|
||||
|
||||
/* ----------------------------------------------------
|
||||
Supporting functions
|
||||
---------------------------------------------------- */
|
||||
|
||||
createAXO = function (type){
|
||||
var ax;
|
||||
try {
|
||||
ax = new ActiveXObject(type);
|
||||
} catch (e) {
|
||||
ax = null; //ensure ax remains null
|
||||
}
|
||||
return ax;
|
||||
};
|
||||
|
||||
//IE11 still uses ActiveX for Adobe Reader, but IE 11 doesn't expose
|
||||
//window.ActiveXObject the same way previous versions of IE did
|
||||
//window.ActiveXObject will evaluate to false in IE 11, but "ActiveXObject" in window evaluates to true
|
||||
//so check the first one for older IE, and the second for IE11
|
||||
//FWIW, MS Edge (replacing IE11) does not support ActiveX at all, both will evaluate false
|
||||
//Constructed as a method (not a prop) to avoid unneccesarry overhead -- will only be evaluated if needed
|
||||
isIE = function (){ return !!(window.ActiveXObject || "ActiveXObject" in window); };
|
||||
|
||||
//If either ActiveX support for "AcroPDF.PDF" or "PDF.PdfCtrl" are found, return true
|
||||
//Constructed as a method (not a prop) to avoid unneccesarry overhead -- will only be evaluated if needed
|
||||
supportsPdfActiveX = function (){ return !!(createAXO("AcroPDF.PDF") || createAXO("PDF.PdfCtrl")); };
|
||||
|
||||
//Determines whether PDF support is available
|
||||
supportsPDFs = (supportsPdfMimeType || (isIE() && supportsPdfActiveX()));
|
||||
|
||||
//Create a fragment identifier for using PDF Open parameters when embedding PDF
|
||||
buildFragmentString = function(pdfParams){
|
||||
|
||||
var string = "",
|
||||
prop;
|
||||
|
||||
if(pdfParams){
|
||||
|
||||
for (prop in pdfParams) {
|
||||
if (pdfParams.hasOwnProperty(prop)) {
|
||||
string += encodeURIComponent(prop) + "=" + encodeURIComponent(pdfParams[prop]) + "&";
|
||||
}
|
||||
}
|
||||
|
||||
//The string will be empty if no PDF Params found
|
||||
if(string){
|
||||
|
||||
string = "#" + string;
|
||||
|
||||
//Remove last ampersand
|
||||
string = string.slice(0, string.length - 1);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return string;
|
||||
|
||||
};
|
||||
|
||||
log = function (msg){
|
||||
if(typeof console !== "undefined" && console.log){
|
||||
console.log("[PDFObject] " + msg);
|
||||
}
|
||||
};
|
||||
|
||||
embedError = function (msg){
|
||||
log(msg);
|
||||
return false;
|
||||
};
|
||||
|
||||
getTargetElement = function (targetSelector){
|
||||
|
||||
//Default to body for full-browser PDF
|
||||
var targetNode = document.body;
|
||||
|
||||
//If a targetSelector is specified, check to see whether
|
||||
//it's passing a selector, jQuery object, or an HTML element
|
||||
|
||||
if(typeof targetSelector === "string"){
|
||||
|
||||
//Is CSS selector
|
||||
targetNode = document.querySelector(targetSelector);
|
||||
|
||||
} else if (typeof jQuery !== "undefined" && targetSelector instanceof jQuery && targetSelector.length) {
|
||||
|
||||
//Is jQuery element. Extract HTML node
|
||||
targetNode = targetSelector.get(0);
|
||||
|
||||
} else if (typeof targetSelector.nodeType !== "undefined" && targetSelector.nodeType === 1){
|
||||
|
||||
//Is HTML element
|
||||
targetNode = targetSelector;
|
||||
|
||||
}
|
||||
|
||||
return targetNode;
|
||||
|
||||
};
|
||||
|
||||
generatePDFJSiframe = function (targetNode, url, pdfOpenFragment, PDFJS_URL, id){
|
||||
|
||||
var fullURL = PDFJS_URL + "?file=" + encodeURIComponent(url) + pdfOpenFragment;
|
||||
var scrollfix = (isIOS) ? "-webkit-overflow-scrolling: touch; overflow-y: scroll; " : "overflow: hidden; ";
|
||||
var iframe = "<div style='" + scrollfix + "position: absolute; top: 0; right: 0; bottom: 0; left: 0;'><iframe " + id + " src='" + fullURL + "' style='border: none; width: 100%; height: 100%;' frameborder='0'></iframe></div>";
|
||||
targetNode.className += " pdfobject-container";
|
||||
targetNode.style.position = "relative";
|
||||
targetNode.style.overflow = "auto";
|
||||
targetNode.innerHTML = iframe;
|
||||
return targetNode.getElementsByTagName("iframe")[0];
|
||||
|
||||
};
|
||||
|
||||
generateEmbedElement = function (targetNode, targetSelector, url, pdfOpenFragment, width, height, id){
|
||||
|
||||
var style = "";
|
||||
|
||||
if(targetSelector && targetSelector !== document.body){
|
||||
style = "width: " + width + "; height: " + height + ";";
|
||||
} else {
|
||||
style = "position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;";
|
||||
}
|
||||
|
||||
targetNode.className += " pdfobject-container";
|
||||
targetNode.innerHTML = "<embed " + id + " class='pdfobject' src='" + url + pdfOpenFragment + "' type='application/pdf' style='overflow: auto; " + style + "'/>";
|
||||
|
||||
return targetNode.getElementsByTagName("embed")[0];
|
||||
|
||||
};
|
||||
|
||||
embed = function(url, targetSelector, options){
|
||||
|
||||
//Ensure URL is available. If not, exit now.
|
||||
if(typeof url !== "string"){ return embedError("URL is not valid"); }
|
||||
|
||||
//If targetSelector is not defined, convert to boolean
|
||||
targetSelector = (typeof targetSelector !== "undefined") ? targetSelector : false;
|
||||
|
||||
//Ensure options object is not undefined -- enables easier error checking below
|
||||
options = (typeof options !== "undefined") ? options : {};
|
||||
|
||||
//Get passed options, or set reasonable defaults
|
||||
var id = (options.id && typeof options.id === "string") ? "id='" + options.id + "'" : "",
|
||||
page = (options.page) ? options.page : false,
|
||||
pdfOpenParams = (options.pdfOpenParams) ? options.pdfOpenParams : {},
|
||||
fallbackLink = (typeof options.fallbackLink !== "undefined") ? options.fallbackLink : true,
|
||||
width = (options.width) ? options.width : "100%",
|
||||
height = (options.height) ? options.height : "100%",
|
||||
forcePDFJS = (typeof options.forcePDFJS === "boolean") ? options.forcePDFJS : false,
|
||||
PDFJS_URL = (options.PDFJS_URL) ? options.PDFJS_URL : false,
|
||||
targetNode = getTargetElement(targetSelector),
|
||||
fallbackHTML = "",
|
||||
pdfOpenFragment = "",
|
||||
fallbackHTML_default = "<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href='[url]'>Download PDF</a></p>";
|
||||
|
||||
//If target element is specified but is not valid, exit without doing anything
|
||||
if(!targetNode){ return embedError("Target element cannot be determined"); }
|
||||
|
||||
|
||||
//page option overrides pdfOpenParams, if found
|
||||
if(page){
|
||||
pdfOpenParams.page = page;
|
||||
}
|
||||
|
||||
//Stringify optional Adobe params for opening document (as fragment identifier)
|
||||
pdfOpenFragment = buildFragmentString(pdfOpenParams);
|
||||
|
||||
//Do the dance
|
||||
if(forcePDFJS && PDFJS_URL){
|
||||
|
||||
return generatePDFJSiframe(targetNode, url, pdfOpenFragment, PDFJS_URL, id);
|
||||
|
||||
} else if(supportsPDFs){
|
||||
|
||||
return generateEmbedElement(targetNode, targetSelector, url, pdfOpenFragment, width, height, id);
|
||||
|
||||
} else {
|
||||
|
||||
if(PDFJS_URL){
|
||||
|
||||
return generatePDFJSiframe(targetNode, url, pdfOpenFragment, PDFJS_URL, id);
|
||||
|
||||
} else if(fallbackLink){
|
||||
|
||||
fallbackHTML = (typeof fallbackLink === "string") ? fallbackLink : fallbackHTML_default;
|
||||
targetNode.innerHTML = fallbackHTML.replace(/\[url\]/g, url);
|
||||
|
||||
}
|
||||
|
||||
return embedError("This browser does not support embedded PDFs");
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
return {
|
||||
embed: function (a,b,c){ return embed(a,b,c); },
|
||||
pdfobjectversion: (function () { return pdfobjectversion; })(),
|
||||
supportsPDFs: (function (){ return supportsPDFs; })()
|
||||
};
|
||||
|
||||
}));
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
PDFObject v2.0.201604172
|
||||
https://github.com/pipwerks/PDFObject
|
||||
Copyright (c) 2008-2016 Philip Hutchison
|
||||
MIT-style license: http://pipwerks.mit-license.org/
|
||||
UMD module pattern from https://github.com/umdjs/umd/blob/master/templates/returnExports.js
|
||||
*/
|
||||
(function(root,factory){if(typeof define==="function"&&define.amd){define([],factory)}else if(typeof module==="object"&&module.exports){module.exports=factory()}else{root.PDFObject=factory()}})(this,function(){"use strict";if(typeof window==="undefined"||typeof navigator==="undefined"){return false}var pdfobjectversion="2.0.201604172",supportsPDFs,createAXO,isIE,supportsPdfMimeType=typeof navigator.mimeTypes["application/pdf"]!=="undefined",supportsPdfActiveX,buildFragmentString,log,embedError,embed,getTargetElement,generatePDFJSiframe,isIOS=function(){return/iphone|ipad|ipod/i.test(navigator.userAgent.toLowerCase())}(),generateEmbedElement;createAXO=function(type){var ax;try{ax=new ActiveXObject(type)}catch(e){ax=null}return ax};isIE=function(){return!!(window.ActiveXObject||"ActiveXObject"in window)};supportsPdfActiveX=function(){return!!(createAXO("AcroPDF.PDF")||createAXO("PDF.PdfCtrl"))};supportsPDFs=supportsPdfMimeType||isIE()&&supportsPdfActiveX();buildFragmentString=function(pdfParams){var string="",prop;if(pdfParams){for(prop in pdfParams){if(pdfParams.hasOwnProperty(prop)){string+=encodeURIComponent(prop)+"="+encodeURIComponent(pdfParams[prop])+"&"}}if(string){string="#"+string;string=string.slice(0,string.length-1)}}return string};log=function(msg){if(typeof console!=="undefined"&&console.log){console.log("[PDFObject] "+msg)}};embedError=function(msg){log(msg);return false};getTargetElement=function(targetSelector){var targetNode=document.body;if(typeof targetSelector==="string"){targetNode=document.querySelector(targetSelector)}else if(typeof jQuery!=="undefined"&&targetSelector instanceof jQuery&&targetSelector.length){targetNode=targetSelector.get(0)}else if(typeof targetSelector.nodeType!=="undefined"&&targetSelector.nodeType===1){targetNode=targetSelector}return targetNode};generatePDFJSiframe=function(targetNode,url,pdfOpenFragment,PDFJS_URL,id){var fullURL=PDFJS_URL+"?file="+encodeURIComponent(url)+pdfOpenFragment;var scrollfix=isIOS?"-webkit-overflow-scrolling: touch; overflow-y: scroll; ":"overflow: hidden; ";var iframe="<div style='"+scrollfix+"position: absolute; top: 0; right: 0; bottom: 0; left: 0;'><iframe "+id+" src='"+fullURL+"' style='border: none; width: 100%; height: 100%;' frameborder='0'></iframe></div>";targetNode.className+=" pdfobject-container";targetNode.style.position="relative";targetNode.style.overflow="auto";targetNode.innerHTML=iframe;return targetNode.getElementsByTagName("iframe")[0]};generateEmbedElement=function(targetNode,targetSelector,url,pdfOpenFragment,width,height,id){var style="";if(targetSelector&&targetSelector!==document.body){style="width: "+width+"; height: "+height+";"}else{style="position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;"}targetNode.className+=" pdfobject-container";targetNode.innerHTML="<embed "+id+" class='pdfobject' src='"+url+pdfOpenFragment+"' type='application/pdf' style='overflow: auto; "+style+"'/>";return targetNode.getElementsByTagName("embed")[0]};embed=function(url,targetSelector,options){if(typeof url!=="string"){return embedError("URL is not valid")}targetSelector=typeof targetSelector!=="undefined"?targetSelector:false;options=typeof options!=="undefined"?options:{};var id=options.id&&typeof options.id==="string"?"id='"+options.id+"'":"",page=options.page?options.page:false,pdfOpenParams=options.pdfOpenParams?options.pdfOpenParams:{},fallbackLink=typeof options.fallbackLink!=="undefined"?options.fallbackLink:true,width=options.width?options.width:"100%",height=options.height?options.height:"100%",forcePDFJS=typeof options.forcePDFJS==="boolean"?options.forcePDFJS:false,PDFJS_URL=options.PDFJS_URL?options.PDFJS_URL:false,targetNode=getTargetElement(targetSelector),fallbackHTML="",pdfOpenFragment="",fallbackHTML_default="<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href='[url]'>Download PDF</a></p>";if(!targetNode){return embedError("Target element cannot be determined")}if(page){pdfOpenParams.page=page}pdfOpenFragment=buildFragmentString(pdfOpenParams);if(forcePDFJS&&PDFJS_URL){return generatePDFJSiframe(targetNode,url,pdfOpenFragment,PDFJS_URL,id)}else if(supportsPDFs){return generateEmbedElement(targetNode,targetSelector,url,pdfOpenFragment,width,height,id)}else{if(PDFJS_URL){return generatePDFJSiframe(targetNode,url,pdfOpenFragment,PDFJS_URL,id)}else if(fallbackLink){fallbackHTML=typeof fallbackLink==="string"?fallbackLink:fallbackHTML_default;targetNode.innerHTML=fallbackHTML.replace(/\[url\]/g,url)}return embedError("This browser does not support embedded PDFs")}};return{embed:function(a,b,c){return embed(a,b,c)},pdfobjectversion:function(){return pdfobjectversion}(),supportsPDFs:function(){return supportsPDFs}()}});
|
||||
Reference in New Issue
Block a user