Hey y'all.
Please don't hate me for the following code if it is hopelessly amateur: I am but a hopeless amateur.
Its just a sort of demo idea that i'm messing with... there are extra objects etcetera in the css that i'm not using yet and so on... this is my first attempt with css, java, or even html, really.
I'm trying to put some roundabouts in coda, as the title suggests.
I'm fairly sure that I'm not double-calling jquery.
Problems:
The width of the ul in roundabout, which usually effects the spread of the li's, (alterable in the css) is not functioning (ie, width does not change). This means that the roundabouts extend into the adjacent coda panel.
Also, the coda tabs have totally disappeared, Oh, and there is a big white space at the top of the coda... which may well be the tabs, actually...
why is the class 'title' - used in the coda examples to create a tab - not present in the css anywho?
lots of questions.
Any ideas?
massive thanks, no seriously,
b6a6r6n
the css (non-coda stuff at the bottom):
- /***********************************************************************
- jQuery Coda-Slider v3.0 - kevinbatdorf.github.com/codaslider
- Copyright (c) 2012 Kevin Batdorf
- This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.
- .coda-slider-wrapper {
- padding: 0px 0;
- }
-
- .coda-slider-wrapper .coda-slider {
-
- background: #000000;
- width: 800px;
- }
-
- .coda-slider-wrapper .coda-slider .panel {
-
- width: 800px;
- }
-
- .coda-slider-wrapper .coda-slider .panel .panel-wrapper {
-
- padding: 0px;
- }
-
- .coda-slider-wrapper .coda-nav {
-
- }
-
- .coda-slider-wrapper .coda-nav .current {
-
- background: #000000;
- }
-
- .coda-slider-wrapper .coda-nav a {
-
- background: #000000;
- color: #FFFFFF;
- margin-right: 1px;
- padding: 3px 6px;
- }
-
- .coda-slider-wrapper .coda-nav a:hover {
-
- background: #000000;
- color: #FFFFFF;
- text-shadow: none;
- }
-
- .coda-slider-wrapper .coda-nav-left, .coda-slider-wrapper .coda-nav-right {
-
- }
-
- .coda-slider-wrapper .coda-nav-left a, .coda-slider-wrapper .coda-nav-right a {
-
- background: #000;
- color: #fff;
- padding: 5px;
- width: 100px;
- }
-
- .coda-slider-wrapper .coda-nav-left-arrow {
- /******************************************************
- *
- * Graphical arrow styles
- *
- *******************************************************/
- width: 25px;
- height: 25px;
- background: url(../img/arrow.png) no-repeat top left;
- margin-top:50px;
- }
- .coda-slider-wrapper .coda-nav-left-arrow a {
- /******************************************************
- *
- * Graphical arrow styles
- *
- *******************************************************/
- width: 0;
- height: 0;
- border:none;
- }
- .coda-slider-wrapper .coda-nav-left-arrow:hover {
- /************************************************
- *
- * Graphical arrows hover left
- *
- *************************************************/
- background: url(../img/arrow.png) no-repeat bottom left;
- }
-
- .coda-slider-wrapper .coda-nav-right-arrow {
- /******************************************************
- *
- * Graphical arrow styles
- *
- *******************************************************/
- width: 25px;
- height: 25px;
- background: url(../img/arrow.png) no-repeat top right;
- margin-top:50px;
- }
- .coda-slider-wrapper .coda-nav-right-arrow a {
- /******************************************************
- *
- * Graphical arrow styles
- *
- *******************************************************/
- width: 0;
- height: 0;
- background: none;
- margin-top:0;
- border:none;
- }
- .coda-slider-wrapper .coda-nav-right-arrow:hover {
- /************************************************
- *
- * Graphical arrows hover right
- *
- *************************************************/
- background: url(../img/arrow.png) no-repeat bottom right;
- }
- .coda-slider-wrapper .coda-nav-left-arrow:active, .coda-slider-wrapper .coda-nav-right-arrow:active {
- /************************************************
- *
- * Graphical arrows active
- *
- *************************************************/
- margin-top: 22px;
- }
-
- .coda-slider-wrapper .loading {
- /******************************************************
- *
- * Style for preloader
- *
- *******************************************************/
- height: 100%;
- padding: 20px;
- text-align: center;
- }
-
- .arrows .coda-slider {
- /******************************************************
- *
- * Margin between slider and arrows
- *
- *******************************************************/
- margin: 0 10px;
- }
- /**********************************************************************
- *
- * Don't change anything below here unless you know what you're doing
- *
- ***********************************************************************/
- .coda-slider-wrapper {
- /************************************************
- *
- * Wrapper styles
- *
- *************************************************/
- clear: both;
- overflow: auto;
- }
-
- .coda-slider-wrapper .coda-slider {
- /************************************************
- *
- * slider styles
- *
- *************************************************/
- float: left;
- overflow: hidden;
- position: relative;
- }
-
- .coda-slider-wrapper .coda-slider .panel-container {
- /************************************************
- *
- * Panel container styles
- *
- *************************************************/
- position: relative;
- }
-
- .coda-slider-wrapper .coda-slider .panel-container .panel {
- /************************************************
- *
- * Panel styles
- *
- *************************************************/
- display: block;
- float: left;
- }
-
- .coda-slider-wrapper .coda-nav {
- /************************************************
- *
- * Navigation tabs
- *
- *************************************************/
- }
-
- .coda-slider-wrapper .coda-nav ul {
- /************************************************
- *
- * Navigation tabs
- *
- *************************************************/
- clear: both;
- display: block;
- margin: auto;
- overflow: hidden;
- }
-
- .coda-slider-wrapper .coda-nav ul li {
- /************************************************
- *
- * Navigation tabs
- *
- *************************************************/
- display: inline;
- }
-
- .coda-slider-wrapper .coda-nav ul li a {
- /************************************************
- *
- * Navigation tabs
- *
- *************************************************/
- display: block;
- float: left;
- text-decoration: none;
- }
-
- .coda-slider-wrapper .coda-nav-left-arrow, .coda-slider-wrapper .coda-nav-right-arrow {
- /************************************************
- *
- * Graphical arrows
- *
- *************************************************/
- cursor: pointer;
- float: left;
- }
-
- .coda-slider-wrapper .coda-nav-left-arrow a, .coda-slider-wrapper .coda-nav-right-arrow a {
- /************************************************
- *
- * Graphical arrows
- *
- *************************************************/
- display: block;
- }
-
- .coda-slider-wrapper .coda-nav-left, .coda-slider-wrapper .coda-nav-right {
- /************************************************
- *
- * Html arrows
- *
- *************************************************/
- float: left;
- }
-
- .coda-slider-wrapper .coda-nav-left a, .coda-slider-wrapper .coda-nav-right a {
- /************************************************
- *
- * Html arrow styles
- *
- *************************************************/
- display: block;
- text-align: center;
- text-decoration: none;
- }
-
- .coda-slider-wrapper .coda-nav-left, .coda-slider-wrapper .coda-nav-left-arrow {
- /************************************************
- *
- * Html and graphical arrow styles
- *
- *************************************************/
- clear: both;
- }
-
-
-
-
-
-
-
- <script type="text/javascript"></script>
- <meta charset="utf-8" />
-
-
- ul {
- list-style: none;
- padding: 0;
- margin: 0 auto;
- width: 5em;
- height: 10em;
- }
- li {
- height: 19.6em;
- width: 27em;
- text-align: center;
- cursor: pointer;
- background-color: #000000;
- border: 1px solid #999;
- }
- li img {
- width: 100%;
- }
- li.roundabout-in-focus {
- cursor: default;
- }
- li span {
- display: block;
- padding-top: 1em;
- }
-
- .header
- {
- background-color: #000000;
- padding: 0px;
- text-align: center;
- visibility: visible;
- position: static;
- height: 430px }
-
- #footer
- {
- color: #000000;
- font-size: 2em;
- line-height: 30px;
- background-color: #000000;
- text-align: left;
- letter-spacing: 1px;
- height: 30px;
- padding-top: 30px;
- padding-bottom: 30px;
- font-family: 'MyWebFont';
- clear: left
- }
-
- #left {float:left; width:50%;}
-
-
- @font-face{
- font-family: 'MyWebFont';
- src: url('freebsc_-webfont.eot');
- src: url('freebsc_-webfont.eot?#iefix') format('embedded-opentype'),
- url('freebsc_-webfont.woff') format('woff'),
- url('freebsc_-webfont.ttf') format('truetype'),
- url('freebsc_-webfont.svg#webfont') format('svg');
- }
- body {
- background-color: #000000;
- margin:0;
- padding:0;
-
- color: #FFFFFF;
- font-size: 100%;}
-
- p.title {font-family: 'MyWebFont'; font-size:3em; text-align:center;}
- p.detail {font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size:1em; text-align:center;}
-
- a:link {color: #736F6E; text-decoration: none; }
- a:active {color: #FFFFFF; text-decoration: none; }
- a:visited {color: #736F6E; text-decoration: none; }
- a:hover {color: #FFFFFF; text-decoration: none; }
the html: (no image links will work...!)
- <html>
- <head>
- <link rel="stylesheet" type="text/css" media="screen" href="./css/coda-slider.css">
- <script src="./js/jquery-1.7.2.min.js"></script>
- <script src="./js/jquery-ui-1.8.20.custom.min.js"></script>
- <script src="./js/jquery.coda-slider-3.0.js"></script>
- <script src="jquery.roundabout.js"></script>
- <script>
- $(function() {
- $('#slider-id').codaSlider();
- });
- $(document).ready(function() {
- $('ul').roundabout();
- });
- </script>
- </head>
- <body>
-
- <div class="coda-slider" id="slider-id">
- <div>
- <h2 class="title">Panel 1</h2>
- <ul>
- <div class="header"><img src="Logo_01.jpg" align="center" width="100%" alt=""></div>
- </ul>
- <BR><BR><BR><BR><BR><BR><BR><BR>
- </div>
- <div>
- <h2 class="title">Panel 2</h2>
- <BR><BR><BR><BR><BR><BR><BR><BR>
- <ul>
- <li><img src="images/lflower03.jpg" alt="The Phoenix Bird" /></li>
- <li><img src="images/lflower04.jpg" alt="The Phoenix Bird" /></li>
- <li><img src="images/phbird04a.jpg" alt="The Phoenix Bird" /></li>
- <li><img src="images/phbird05a.jpg" alt="The Phoenix Bird" /></li>
- </ul>
- <BR><BR><BR><BR><BR><BR><BR><BR>
- </div>
- <div>
- <h2 class="title">Panel 3</h2>
- <BR><BR><BR><BR><BR><BR><BR><BR>
- <ul>
- <li><img src="images/phbird02a.jpg" alt="The Phoenix Bird" /></li>
- <li><img src="images/phbird03a.jpg" alt="The Phoenix Bird" /></li>
- <li><img src="images/phbird04a.jpg" alt="The Phoenix Bird" /></li>
- <li><img src="images/phbird05a.jpg" alt="The Phoenix Bird" /></li>
- </ul>
- <br><BR><BR><BR><BR><BR><BR>
-
-
- </div>
- </div>
- </body>
- </html>