Skip to content

Commit bdcf37d

Browse files
committed
scroll interno
1 parent 419891d commit bdcf37d

File tree

12 files changed

+417
-13
lines changed

12 files changed

+417
-13
lines changed

css/jquery.jscrollpane.css

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
/*
2+
* CSS Styles that are needed by jScrollPane for it to operate correctly.
3+
*
4+
* Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
5+
* may not operate correctly without them.
6+
*/
7+
8+
.jspContainer
9+
{
10+
overflow: hidden;
11+
position: relative;
12+
}
13+
14+
.jspPane
15+
{
16+
position: absolute;
17+
}
18+
19+
.jspVerticalBar
20+
{
21+
position: absolute;
22+
top: 0;
23+
right: 0;
24+
width: 5px;
25+
height: 100%;
26+
background: red;
27+
}
28+
29+
.jspHorizontalBar
30+
{
31+
position: absolute;
32+
bottom: 0;
33+
left: 0;
34+
width: 100%;
35+
height: 16px;
36+
background: red;
37+
}
38+
39+
.jspCap
40+
{
41+
display: none;
42+
}
43+
44+
.jspHorizontalBar .jspCap
45+
{
46+
float: left;
47+
}
48+
49+
.jspTrack
50+
{
51+
background: rgb(232,232,232);
52+
position: relative;
53+
}
54+
55+
.jspDrag
56+
{
57+
background: rgb(201,205,102);
58+
position: relative;
59+
top: 0;
60+
left: 0;
61+
cursor: pointer;
62+
}
63+
64+
.jspHorizontalBar .jspTrack,
65+
.jspHorizontalBar .jspDrag
66+
{
67+
float: left;
68+
height: 100%;
69+
}
70+
71+
.jspArrow
72+
{
73+
background: #50506d;
74+
text-indent: -20000px;
75+
display: block;
76+
cursor: pointer;
77+
padding: 0;
78+
margin: 0;
79+
}
80+
81+
.jspArrow.jspDisabled
82+
{
83+
cursor: default;
84+
background: #80808d;
85+
}
86+
87+
.jspVerticalBar .jspArrow
88+
{
89+
height: 16px;
90+
}
91+
92+
.jspHorizontalBar .jspArrow
93+
{
94+
width: 16px;
95+
float: left;
96+
height: 100%;
97+
}
98+
99+
.jspVerticalBar .jspArrow:focus
100+
{
101+
outline: none;
102+
}
103+
104+
.jspCorner
105+
{
106+
background: #eeeef4;
107+
float: left;
108+
height: 100%;
109+
}
110+
111+
/* Yuk! CSS Hack for IE6 3 pixel bug :( */
112+
* html .jspCorner
113+
{
114+
margin: 0 -3px 0 0;
115+
}

functions.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,15 @@ function save_postdata( $post_id ) {
113113

114114
// Scrip Carrusel //
115115

116+
wp_register_script('mousewheel', get_bloginfo('template_url') . '/js/jquery.mousewheel.js', array('jquery'), 1.1, true);
117+
wp_register_script('intent', get_bloginfo('template_url') . '/js/mwheelintent.js', array('jquery'), 1.1, true);
118+
wp_register_script('scrollpane', get_bloginfo('template_url') . '/js/jquery.jscrollpane.min.js', array('jquery', 'mousewheel', 'intent'), 1.1, true);
116119
wp_register_script('carousel', get_bloginfo('template_url') . '/js/jquery.jcarousel.min.js', array('jquery'), 1.1, true);
117120
wp_register_script('fittext', get_bloginfo('template_url') . '/js/jquery.fittext.js', array('jquery'), 1.1, true);
118121
wp_register_script('google-maps', 'https://maps.googleapis.com/maps/api/js?v=3.exp', true );
119122
wp_enqueue_script('main', get_bloginfo('template_url') . '/js/min/main-min.js', array('carousel', 'fittext', 'google-maps'), 1.1, true);
120-
123+
wp_enqueue_script('scroll', get_bloginfo('template_url') . '/js/min/scroll-min.js', array('jquery', 'scrollpane'));
124+
wp_enqueue_style('scroll_style', get_bloginfo('template_url') . '/css/jquery.jscrollpane.css');
121125
// Leer más //
122126

123127
function new_excerpt_more( $more ) {

js/jquery.jscrollpane.min.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)