Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated javascript

  • Loading branch information...
commit 2bf73aaa5769b0058415f35669105440504170c7 1 parent 6125508
@pmacom authored
Showing with 46 additions and 2 deletions.
  1. +46 −2 sites/all/themes/corby/templates/node/node--page.tpl.php
View
48 sites/all/themes/corby/templates/node/node--page.tpl.php
@@ -11,6 +11,20 @@
font-family: Verdana, Helvetica, Arial, sans-serif;
}
+ .tabs *{
+ background: none !important;
+ color: #333 !important;
+ border: none !important;
+ }
+
+ .tabs a.active {
+ color: #333 !important;
+ }
+
+ .tabs a:hover {
+ color: #bbb !important;
+ }
+
.zone-content,
#region-content {
width: 98% !important;
@@ -78,7 +92,17 @@
];
function corby_init(){
-
+ jQuery('#performer-list').hide();
+ }
+
+ function _toggle(){
+ jQuery('#performer-list').slideToggle(2000);
+ }
+
+ function _update_many(performers){
+ for(i=0; i<performers.length; i++){
+ console.log(performers[i]);
+ }
}
function corby_prev(){
@@ -107,7 +131,8 @@ function play_anim(){
var corby_height = jQuery('#corby-wrapper').css('height');
var timer_height = jQuery('.timer').css('height');
var final_height = parseInt(corby_height) - parseInt(timer_height);
- var seconds = 5;
+ var seconds = 120;
+ var lightat = 30;
jQuery('.timer').stop();
jQuery('.timer').css('bottom', '0');
@@ -117,6 +142,23 @@ function play_anim(){
});
}
+ function _update(id, newName){
+ jQuery('.field-name-field-performer-'+id).html(newName);
+ }
+
+ function _clear(){
+ jQuery('.field-name-field-performer-1').html('');
+ jQuery('.field-name-field-performer-2').html('');
+ jQuery('.field-name-field-performer-3').html('');
+ jQuery('.field-name-field-performer-4').html('');
+ jQuery('.field-name-field-performer-5').html('');
+ jQuery('.field-name-field-performer-6').html('');
+ jQuery('.field-name-field-performer-7').html('');
+ jQuery('.field-name-field-performer-8').html('');
+ jQuery('.field-name-field-performer-9').html('');
+ jQuery('.field-name-field-performer-10').html('');
+ }
+
function init_keys(){
function checkKey(e){
@@ -156,6 +198,7 @@ function checkKey(e){
<div class='hug'>HUG</div>
<div class='swipe'></div>
</div>
+<div id='performer-list'>
<?php print render($content['field_performer_1']); ?>
<?php print render($content['field_performer_2']); ?>
<?php print render($content['field_performer_3']); ?>
@@ -167,3 +210,4 @@ function checkKey(e){
<?php print render($content['field_performer_9']); ?>
<?php print render($content['field_performer_10']); ?>
</div>
+</div>
Please sign in to comment.
Something went wrong with that request. Please try again.