Skip to content

Commit

Permalink
scroll interno
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercf committed Aug 22, 2014
1 parent 419891d commit bdcf37d
Show file tree
Hide file tree
Showing 12 changed files with 417 additions and 13 deletions.
115 changes: 115 additions & 0 deletions css/jquery.jscrollpane.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
/*
* CSS Styles that are needed by jScrollPane for it to operate correctly.
*
* Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
* may not operate correctly without them.
*/

.jspContainer
{
overflow: hidden;
position: relative;
}

.jspPane
{
position: absolute;
}

.jspVerticalBar
{
position: absolute;
top: 0;
right: 0;
width: 5px;
height: 100%;
background: red;
}

.jspHorizontalBar
{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 16px;
background: red;
}

.jspCap
{
display: none;
}

.jspHorizontalBar .jspCap
{
float: left;
}

.jspTrack
{
background: rgb(232,232,232);
position: relative;
}

.jspDrag
{
background: rgb(201,205,102);
position: relative;
top: 0;
left: 0;
cursor: pointer;
}

.jspHorizontalBar .jspTrack,
.jspHorizontalBar .jspDrag
{
float: left;
height: 100%;
}

.jspArrow
{
background: #50506d;
text-indent: -20000px;
display: block;
cursor: pointer;
padding: 0;
margin: 0;
}

.jspArrow.jspDisabled
{
cursor: default;
background: #80808d;
}

.jspVerticalBar .jspArrow
{
height: 16px;
}

.jspHorizontalBar .jspArrow
{
width: 16px;
float: left;
height: 100%;
}

.jspVerticalBar .jspArrow:focus
{
outline: none;
}

.jspCorner
{
background: #eeeef4;
float: left;
height: 100%;
}

/* Yuk! CSS Hack for IE6 3 pixel bug :( */
* html .jspCorner
{
margin: 0 -3px 0 0;
}
6 changes: 5 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,15 @@ function save_postdata( $post_id ) {

// Scrip Carrusel //

wp_register_script('mousewheel', get_bloginfo('template_url') . '/js/jquery.mousewheel.js', array('jquery'), 1.1, true);
wp_register_script('intent', get_bloginfo('template_url') . '/js/mwheelintent.js', array('jquery'), 1.1, true);
wp_register_script('scrollpane', get_bloginfo('template_url') . '/js/jquery.jscrollpane.min.js', array('jquery', 'mousewheel', 'intent'), 1.1, true);
wp_register_script('carousel', get_bloginfo('template_url') . '/js/jquery.jcarousel.min.js', array('jquery'), 1.1, true);
wp_register_script('fittext', get_bloginfo('template_url') . '/js/jquery.fittext.js', array('jquery'), 1.1, true);
wp_register_script('google-maps', 'https://maps.googleapis.com/maps/api/js?v=3.exp', true );
wp_enqueue_script('main', get_bloginfo('template_url') . '/js/min/main-min.js', array('carousel', 'fittext', 'google-maps'), 1.1, true);

wp_enqueue_script('scroll', get_bloginfo('template_url') . '/js/min/scroll-min.js', array('jquery', 'scrollpane'));
wp_enqueue_style('scroll_style', get_bloginfo('template_url') . '/css/jquery.jscrollpane.css');
// Leer más //

function new_excerpt_more( $more ) {
Expand Down
8 changes: 8 additions & 0 deletions js/jquery.jscrollpane.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bdcf37d

Please sign in to comment.