GCAT5.0 released
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.5 KiB |
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2012 The Board of Regents of the University of Wisconsin System.
|
||||
* Contributors: Jason Shao, James McCurdy, Enhai Xie, Adam G.W. Halstead,
|
||||
* Michael H. Whitney, Nathan DiPiazza, Trey K. Sato and Yury V. Bukhman
|
||||
*
|
||||
* This file is part of GCAT.
|
||||
*
|
||||
* GCAT is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GCAT is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with GCAT. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// This is a manifest file that'll be compiled into including all the files listed below.
|
||||
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
||||
// be included in the compiled file accessible from http://example.com/assets/application.js
|
||||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
||||
// the compiled file.
|
||||
//
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require yuiloader-min
|
||||
//= require datatable-min
|
||||
//= require jquery.loader-min
|
||||
//= require_tree .
|
||||
//= require bootstrap.min
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2012 The Board of Regents of the University of Wisconsin System.
|
||||
* Contributors: Jason Shao, James McCurdy, Enhai Xie, Adam G.W. Halstead,
|
||||
* Michael H. Whitney, Nathan DiPiazza, Trey K. Sato and Yury V. Bukhman
|
||||
*
|
||||
* This file is part of GCAT.
|
||||
*
|
||||
* GCAT is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GCAT is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with GCAT. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
// Three blocks below for hiding the optional user input fields.
|
||||
$(".user_enter1").on("change", function(){
|
||||
$(".optional_input1").toggle($(this).hasClass("user_enter1_yes"));
|
||||
});
|
||||
|
||||
$(".user_enter2").on("change", function(){
|
||||
$(".optional_input2").toggle($(this).hasClass("user_enter2_yes"));
|
||||
});
|
||||
|
||||
$(".user_enter3").on("change", function(){
|
||||
$(".optional_input3").toggle($(this).hasClass("user_enter3_yes"));
|
||||
});
|
||||
|
||||
// handle error redirect & browser back cases//////////////////////////////////////////
|
||||
/****************************************************
|
||||
* This function checks the radio box for the
|
||||
* corresponding optional div with input field.
|
||||
* If checked show else hide
|
||||
* @return void
|
||||
****************************************************/
|
||||
function reset_optional_fields(radio, optional_box){
|
||||
if(radio && optional_box){
|
||||
var radio_ckd = radio.prop('checked');
|
||||
if(radio_ckd){
|
||||
optional_box.show();
|
||||
}
|
||||
else {
|
||||
optional_box.hide();
|
||||
}
|
||||
} else{
|
||||
console.error("Error: unknown selector in reset_optional_fields()");
|
||||
}
|
||||
}
|
||||
reset_optional_fields($('#assay_plate_type_m'), $("#time"));
|
||||
reset_optional_fields($("input#assay_blank_value_user"), $("div.optional_input3"));
|
||||
reset_optional_fields($("input#assay_transformation_-1"), $("div.optional_input2"));
|
||||
reset_optional_fields($("input#assay_model_-1"), $("div.optional_input1"));
|
||||
//////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$('#new_assay').submit(function() {
|
||||
$.loader();
|
||||
});
|
||||
|
||||
$("input[name$='assay[plate_type]']").click(function(){
|
||||
var value = $(this).val();
|
||||
if(value=='s') {
|
||||
$("#time").hide();
|
||||
}
|
||||
else if(value=='m') {
|
||||
$("#time").show();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2012 The Board of Regents of the University of Wisconsin System.
|
||||
* Contributors: Jason Shao, James McCurdy, Enhai Xie, Adam G.W. Halstead,
|
||||
* Michael H. Whitney, Nathan DiPiazza, Trey K. Sato and Yury V. Bukhman
|
||||
*
|
||||
* This file is part of GCAT.
|
||||
*
|
||||
* GCAT is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GCAT is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with GCAT. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
||||
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
||||
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
||||
*= require_self
|
||||
*= require_tree .
|
||||
*= require bootstrap.min
|
||||
*/
|
||||
|
||||
//= require datatable
|
||||
//= require jquery.loader-min
|
||||
@@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the Assays controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright 2012 The Board of Regents of the University of Wisconsin System.
|
||||
* Contributors: Jason Shao, James McCurdy, Enhai Xie, Adam G.W. Halstead,
|
||||
* Michael H. Whitney, Nathan DiPiazza, Trey K. Sato and Yury V. Bukhman
|
||||
*
|
||||
* This file is part of GCAT.
|
||||
*
|
||||
* GCAT is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GCAT is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with GCAT. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*.yui-skin-sam .yui-dt-liner { white-space:nowrap; font-size: 8pt;}
|
||||
.twoColLiqLtHdr #mainContent { margin:0;min-height:500px; } //Not used anymore NWD// */
|
||||
|
||||
body {
|
||||
background: url("bkg-body.png") repeat-x scroll left top #FFFFFF;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
a:visited { color: #428bca !important;}
|
||||
|
||||
#nav-bar{
|
||||
background:#B0C5D4;
|
||||
border-bottom:1px solid #B0C5D4;
|
||||
text-align:center;
|
||||
h1{
|
||||
font: 42px impact, sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
/*#copyright-stmt {
|
||||
padding: 5px 25px;
|
||||
width: 88%;
|
||||
margin: 20px auto 0;
|
||||
text-align: right;
|
||||
}*/
|
||||
|
||||
#header h1 {
|
||||
font-size: 32px;
|
||||
color: #4F4F4F;
|
||||
}
|
||||
|
||||
#results-container {
|
||||
background-color: #FFFFFF;
|
||||
border: 1px solid black;
|
||||
margin: 20px auto 0;
|
||||
padding: 120px;
|
||||
width: 4000px;
|
||||
}
|
||||
|
||||
#form-container {
|
||||
background-color: #FFFFFF;
|
||||
border: 1px solid black;
|
||||
margin: 20px auto 0;
|
||||
width: 1600px;
|
||||
padding-left: 50px;
|
||||
}
|
||||
|
||||
#contents {
|
||||
padding: 5px 25px;
|
||||
}
|
||||
|
||||
/*#mainContent{
|
||||
margin:0;
|
||||
min-height:500px;
|
||||
}*/
|
||||
|
||||
/*#header {
|
||||
background: #fffff;
|
||||
font: 14px arial;
|
||||
color: black;
|
||||
height:50px;
|
||||
text-align:left;
|
||||
padding: 0px 10px;
|
||||
border-bottom:1px solid #69B03F;
|
||||
width: 1600px;
|
||||
}*/
|
||||
|
||||
/*#flash_notice, #flash_error, #flash_alert, .notice, .error, .alert {
|
||||
padding: 5px 8px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
#flash_notice, .notice {
|
||||
background-color: #CFC;
|
||||
border: solid 1px #6C6;
|
||||
}
|
||||
|
||||
#flash_error, #flash_alert, .error, .alert {
|
||||
background-color: #FCC;
|
||||
border: solid 1px #C66;
|
||||
}*/
|
||||
@@ -0,0 +1,56 @@
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #333;
|
||||
font-family: verdana, arial, helvetica, sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 18px; }
|
||||
|
||||
p, ol, ul, td {
|
||||
font-family: verdana, arial, helvetica, sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 18px; }
|
||||
|
||||
pre {
|
||||
background-color: #eee;
|
||||
padding: 10px;
|
||||
font-size: 11px; }
|
||||
|
||||
a {
|
||||
color: #000;
|
||||
&:visited {
|
||||
color: #666; }
|
||||
&:hover {
|
||||
color: #fff;
|
||||
background-color: #000; } }
|
||||
|
||||
div {
|
||||
&.field, &.actions {
|
||||
margin-bottom: 10px; } }
|
||||
|
||||
#notice {
|
||||
color: green; }
|
||||
|
||||
.field_with_errors {
|
||||
padding: 2px;
|
||||
background-color: red;
|
||||
display: table; }
|
||||
|
||||
#error_explanation {
|
||||
width: 450px;
|
||||
border: 2px solid red;
|
||||
padding: 7px;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 20px;
|
||||
background-color: #f0f0f0;
|
||||
h2 {
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
padding: 5px 5px 5px 15px;
|
||||
font-size: 12px;
|
||||
margin: -7px;
|
||||
margin-bottom: 0px;
|
||||
background-color: #c00;
|
||||
color: #fff; }
|
||||
ul li {
|
||||
font-size: 12px;
|
||||
list-style: square; } }
|
||||
@@ -0,0 +1,157 @@
|
||||
/*
|
||||
* Copyright 2012 The Board of Regents of the University of Wisconsin System.
|
||||
* Contributors: Jason Shao, James McCurdy, Enhai Xie, Adam G.W. Halstead,
|
||||
* Michael H. Whitney, Nathan DiPiazza, Trey K. Sato and Yury V. Bukhman
|
||||
*
|
||||
* This file is part of GCAT.
|
||||
*
|
||||
* GCAT is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GCAT is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with GCAT. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*.tooltip:hover:after { content: attr(data-tooltip);
|
||||
position: absolute; white-space: nowrap; background: rgba(0, 0, 0, 0.85); padding: 3px 7px; color: #FFF; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; margin-left: 7px; margin-top: -3px;font-size:10px;}
|
||||
*/
|
||||
|
||||
|
||||
/* Make tooltip "links" have a different pointer (as the tooltip uses the "help" cursor by default) */
|
||||
a[data-tooltip]
|
||||
{
|
||||
cursor:pointer !important;
|
||||
}
|
||||
/* Styles for elements having a data-tooltip attribute - using the star selector is processor intensive
|
||||
so you may wish to change this to list a known, limited set of tags instead */
|
||||
*[data-tooltip]
|
||||
{
|
||||
/* Relativly position the tooltip to enable us to position:absolute
|
||||
the generated content */
|
||||
position:relative;
|
||||
/* Links inherit the !important cursor rule from above */
|
||||
cursor:help;
|
||||
/* Moz requires the text-decoration here (as it won't allow the use of
|
||||
text-decoration:none on generated content) which is why I use the bottom
|
||||
border to display a more accessible underline */
|
||||
text-decoration:none;
|
||||
border-bottom:1px dotted #aaa;
|
||||
/* Remove the styles for IE7 and below - could be passed using conditional comments */
|
||||
*text-decoration:inherit;
|
||||
*border-bottom-width:inherit;
|
||||
*border-bottom-style:inherit;
|
||||
*cursor:inherit;
|
||||
*position:inherit;
|
||||
}
|
||||
/* Default :before & :after values */
|
||||
*[data-tooltip]:after,
|
||||
*[data-tooltip]:before
|
||||
{
|
||||
content:"";
|
||||
/* Don't show tooltip by default */
|
||||
opacity:0;
|
||||
/* Set a high z-index */
|
||||
z-index:999;
|
||||
|
||||
/* Animations won't (yet) work on pseudo elements - shame really as this should fade the tooltip in
|
||||
after one second - but I'll leave the rules for posterity */
|
||||
-moz-transition-property: opacity;
|
||||
-moz-transition-duration: 2s;
|
||||
-moz-transition-delay: 1s;
|
||||
|
||||
-webkit-transition-property: opacity;
|
||||
-webkit-transition-duration: 2s;
|
||||
-webkit-transition-delay: 1s;
|
||||
|
||||
-o-transition-property: opacity;
|
||||
-o-transition-duration: 2s;
|
||||
-o-transition-delay: 1s;
|
||||
|
||||
transition-property: opacity;
|
||||
transition-duration: 2s;
|
||||
transition-delay: 1s;
|
||||
|
||||
/* -moz won't understand the text-decoration here but inherits the parent value of "none" successfully */
|
||||
text-decoration:none !important;
|
||||
outline:none;
|
||||
}
|
||||
/* Tooltip arrow - shown on hover or focus */
|
||||
*[data-tooltip]:hover:before,
|
||||
*[data-tooltip]:focus:before
|
||||
{
|
||||
/* Slightly opaque arrow */
|
||||
opacity:0.94;
|
||||
outline:none;
|
||||
content:"";
|
||||
display:block;
|
||||
position:absolute;
|
||||
top:20px;
|
||||
left:50%;
|
||||
margin:0 0 0 -5px;
|
||||
width:0;
|
||||
height:0;
|
||||
line-height:0px;
|
||||
font-size:0px;
|
||||
/* This sets the tooptip pointer color */
|
||||
border-bottom:5px solid #33acfc;
|
||||
border-left:5px solid transparent;
|
||||
border-right:5px solid transparent;
|
||||
border-top:transparent;
|
||||
/* Border gradient */
|
||||
-webkit-border-image:-webkit-gradient(linear, left top, left bottom, from(#33ccff), to(#33acfc));
|
||||
}
|
||||
/* Tooltip body - shown on hover or focus */
|
||||
*[data-tooltip]:hover:after,
|
||||
*[data-tooltip]:focus:after
|
||||
{
|
||||
/* Slightly opaque tooltip */
|
||||
opacity:0.94;
|
||||
/* Set display to block (or inline-block) */
|
||||
display:block;
|
||||
/* Use the data-tooltip attribute to set the content*/
|
||||
content:attr(data-tooltip);
|
||||
/* Position the tooltip body under the arrow and in the middle of the text */
|
||||
position:absolute;
|
||||
top:25px;
|
||||
left:50%;
|
||||
margin:0 0 0 -150px;
|
||||
/* Set the width */
|
||||
width:290px;
|
||||
/* Pad */
|
||||
padding:5px;
|
||||
/* Style the tooltip */
|
||||
line-height:18px;
|
||||
/* min-height */
|
||||
min-height:18px;
|
||||
/* Set font styles */
|
||||
color:#fcfcfc;
|
||||
font-size:16px;
|
||||
font-weight:normal;
|
||||
font-family:helvetica neue, calibri, verdana, arial, sans-serif;
|
||||
/* Fallback background color */
|
||||
background:#3198dd;
|
||||
text-align:center;
|
||||
outline:none;
|
||||
/* Moz doesn't recognise the following... */
|
||||
text-decoration:none !important;
|
||||
/* Background gradient */
|
||||
background:-webkit-gradient(linear, left top, left bottom, from(#33acfc), to(#3198dd));
|
||||
background:-moz-linear-gradient(top,#33acfc,#3198dd);
|
||||
/* Round the corners */
|
||||
-moz-border-radius:10px;
|
||||
-webkit-border-radius:10px;
|
||||
border-radius:10px;
|
||||
/* Add a drop shadow */
|
||||
-moz-box-shadow:2px 2px 4px #ccc;
|
||||
-webkit-box-shadow:2px 2px 4px #ccc;
|
||||
box-shadow:2px 2px 4px #ccc;
|
||||
/* Add a Text shadow */
|
||||
text-shadow:#2187c8 0 1px 0px;
|
||||
}
|
||||
Reference in New Issue
Block a user