Coder Social home page Coder Social logo

vertical-news-slider's Introduction

Vertical News Slider

A jQuery and CSS-based slider module that displays news headlines on the left along with a preview image and brief description on the right. The "current" item is highlighted and switches automatically at intervals.

View a demo here

Installation

To install, just include the CSS file along with jQuery and the vertical.news.slider.js or vertical.news.slider.min.js file:

<head>
  ...
  <link rel="stylesheet" href="css/vertical.news.slider.css">
</head>
<body>
  ...
  <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
  <script src="js/vertical.news.slider.min.js"></script>
</body>

It should work with any version of jQuery from 1.8 and up.

Customizations

The expanded JavaScript file has lots of comments in it to indicate what everything does, so you can fiddle around with those if you want to change anything (e.g. the speed of the auto-changing or maybe you don't like that it stops auto-changing when the user hovers over the content part).

MIT License

MIT License

Copyright © 2013 by Louis Lazaris

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

vertical-news-slider's People

Contributors

impressivewebs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vertical-news-slider's Issues

Click event collides with other click-driven elements

Would it be possible to enable pull requests?
I'm trying to request a pull request to fix the fact that triggering a click event to force carousel transitions is not really good practice: other elements which rely on click events will not behave correctly

vertical slider jQuery issue Orchard 1.8.1

I'm trying to use the 'vertical-news-slider' in Orchard (1.8.1) downloaded from Github:
https://github.com/impressivewebs/vertical-news-slider

  • the github demo version runs ok!

When implementing this slider in Orchard by

  • html definitions in a 'page CI' and the jQuery 'script' in a view 'Parts.Common.Body-url-VerticalTicker.cshtml.';
    see code below ...
    ... the slider works .... sort of, i.e.:
  • I see the slider BUT it won't start (never)!
    -HOWEVER; when clicking any slider item between the first and last item the slider starts correctly!
    But stops at the last item (for ever)!

I get an error code saying '0x800a138a - JavaScript runtime error: Function expected ' on ' (function() { '.
(this is something I appreciate!).

I'm not at all a jQuery guru and have never seen this type of 'script' code! But I wonder why then it starts to work
(see HOWEVER above).
PS: same issue opened in Orchard as well!

  • is anything to be done different in Orchard?
  • Can anybody give me a jQuery hint?

thanks for your time, ed

@{Script.Require("jQuery");

Style.Include("vertical.news.slider.css"); /* edi /
Script.Include("vertical.news.slider.js").AtHead(); /
edi */

}

<script> $(document).ready(function () { var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1965499-1']); _gaq.push(['_trackPageview']); $(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); }); </script>

@Model.Html

Layout feature 1.9.1: use of 'use existing layout'

great feature! now, when trying the first time to use 'use existing layout' to get exactly the same layout I'm NOT able to edit it!?
I.e. I cannot see the layout like grid, row, column etc NOR e.g. open a HTML tag to be able to update the content.
I guess I miss something simple

well, in the meantime, I found a solution by plain 'clone' the CI!
Now I'm asking myself what for do I use the 'use existing layout'!?!
happy to receive guidance on how (what for) to use 'use existing layout'!
thanks for your time and help, ed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.