Permalink
Browse files

kuler stuff moved to directory rather than one js file

  • Loading branch information...
1 parent 2eede84 commit ea449d9e2358cc4f1b0c32b884a014d6c10a190e @tybenz tybenz committed May 9, 2012
View
@@ -1,34 +0,0 @@
-#!/bin/bash
-# determine the project root
-output="."
-
-function log {
- echo "[branches preview] $1"
-}
-
-# Make the output directory if it doesnt exist
-mkdir -p "$output"
-
-branches=$(git ls-remote --heads origin | cut -f2 -s | sed 's@refs/heads/@@')
-
-log "fetching to get new branches"
-git fetch origin
-
-# Loop through the array to export each branch
-for branch in $branches; do
- # skip master
- if [ $branch = "master" ]; then
- continue
- fi
-
- # TODO shell escape the $branch value it safe for executing
- log "archiving ref $branch"
- git archive -o "$output/$branch.tar" "origin/$branch"
- mkdir -p "$output/$branch"
-
- log "untarring $branch.tar into $output/$branch/"
- tar -C "$output/$branch" -xf "$output/$branch.tar"
- rm -f "$output/$branch.tar"
- rm -Rf $output/$branch/upgrade/*
- cp -r upgrade "$output/$branch"
-done
View
@@ -10,6 +10,8 @@
$style = urldecode($_POST['style']);
}
$JQUERY_VERSION = $ALL_JQUERY_VERSIONS[ $JQM_VERSION ] ? $ALL_JQUERY_VERSIONS[ $JQM_VERSION ] : "1.6.4";
+
+$kuler_markup = rtrim( preg_replace( "/\n/", "\n\t\t\t\t\t", file_get_contents( "kuler/kuler.html" ) ) ) . "\n";
?>
<!DOCTYPE html>
<html>
@@ -25,6 +27,7 @@
<link rel="stylesheet" type="text/css" href="css/jquery.ui.css" />
<link rel="stylesheet" type="text/css" href="css/farbtastic.css" />
<link rel="stylesheet" type="text/css" href="css/tr.panel.css" />
+ <link rel="stylesheet" type="text/css" href="kuler/kuler.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.ui.js"></script>
@@ -36,7 +39,7 @@
<script type="text/javascript" src="js/panel.js"></script>
<script type="text/javascript" src="js/ui.js"></script>
<script type="text/javascript" src="js/delorean.js"></script>
- <script type="text/javascript" src="js/kuler.js"></script>
+ <script type="text/javascript" src="kuler/kuler.js"></script>
<script type="text/javascript" src="jqm/<?php echo $JQM_VERSION ?>/panel.js"></script>
</head>
<body>
@@ -331,6 +334,11 @@
<span>SATURATION</span><div id="saturation_slider"></div>
</div>
</div>
+ <?php
+ if( isset($kuler_markup) ) {
+ echo $kuler_markup;
+ }
+ ?>
<div id="most-recent-colors">
<h2>Recent Colors</h2>
<div class="colors">
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
File renamed without changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,189 @@
+#kuler{
+ border-right: 1px solid #000; width: 490px;
+ background-color: #161616;
+ height: 100%;
+ float: left;
+ color: #fff;
+ display: none;
+}
+
+#kuler .color-drag{
+ border: none;
+ width: 14px;
+ height: 14px;
+}
+
+#kuler #left-panel{
+ width: 100px;
+ height: 70px;
+ border-right: 1px solid #777;
+ padding: 10px;
+ float: left;
+}
+
+#kuler #left-panel>img{
+ width: 100%;
+}
+
+#kuler #left-panel #kuler-select{
+ margin-top: 20px;
+ margin-bottom: 2px;
+ width: 100px;
+}
+
+#kuler #left-panel #kuler-search{
+ width: 20px;
+ height: 20px;
+ background: transparent;
+ border: 1px solid #777;
+ background-image: url(images/search.png);
+ background-repeat: no-repeat;
+ background-position: center;
+ margin-left: 5px;
+ float: left;
+}
+
+#kuler #left-panel input{
+ width: 68px;
+ font-size: 10px;
+ float: left;
+}
+
+#kuler #kuler-search-query{
+ display: none;
+ margin-top: 1px;
+}
+
+#kuler #center-panel{
+ width: 296px;
+ height: 77px;
+ padding: 3px 15px 10px;
+ float: left;
+ border-right: 1px solid #777;
+}
+
+#kuler #center-panel .kuler-page{
+ display: none;
+ float: left;
+}
+
+#kuler #center-panel .kuler-page.active{
+ display: block;
+}
+
+#kuler #center-panel p{
+ margin-top: 0;
+ margin-bottom: 5px;
+ color: #fff;
+ width: 100%;
+ overflow: hidden;
+ font-size: 10px;
+ height: 10px;
+}
+
+#kuler #center-panel .kuler-theme{
+ margin: 10px 14px 0;
+ float: left;
+ width: 70px;
+}
+
+#kuler #center-panel #kuler-loader{
+ font-size: 12px;
+ width: 75px;
+ height: 15px;
+ margin: 30px auto;
+}
+
+#kuler-loader img{
+ position: relative;
+ top: 3px;
+ height: inherit;
+}
+
+#kuler .kuler-details{
+ display: none;
+ width: 148px;
+ padding: 10px;
+ position: absolute;
+ z-index: 1200;
+ border: 1px solid #777;
+ background-image: url(images/detail-bg.png);
+ font-size: 13px;
+}
+
+.kuler-details h5{
+ margin: 0;
+ font-size: 13px;
+}
+
+#kuler #center-panel .kuler-details p{
+ margin-top: 2px;
+ font-size: 12px;
+ color: #ddd;
+ height: 14px;
+}
+
+.kuler-details span{
+ color: #ddd;
+ font-size: 10px;
+}
+
+.kuler-details .detail-star{
+ width: 10px;
+ height: 10px;
+}
+
+.kuler-details .detail-footer{
+ margin-top: 10px;
+ border-top: 1px solid #777;
+ padding: 10px 0 0;
+ width: 148px;
+}
+
+.detail-footer a{
+ text-decoration: none;
+ color: #fff;
+ margin-right: 10px;
+}
+
+#kuler .kuler-theme .colors{
+ width: 70px;
+}
+
+#kuler #right-panel{
+ height: 70px;
+ width: 41px;
+ float: left;
+ font-size: 12px;
+}
+
+#kuler #kuler-close{
+ height: 15px;
+ padding: 5px 5px;
+ border-bottom: 1px solid #777;
+ text-align: center;
+ cursor: pointer;
+}
+
+#kuler #right-panel #kuler-pages>div{
+ margin-top: 10px;
+ text-align: center;
+}
+
+#kuler #right-panel #kuler-pages #kuler-back-page{
+ text-align: center;
+ width: 15px;
+ height: 15px;
+ margin: 7px 0px 0 5px;
+ float: left;
+ cursor: pointer;
+}
+
+#kuler #right-panel #kuler-pages #kuler-next-page{
+ text-align: center;
+ width: 15px;
+ height: 15px;
+ margin: 7px 0px 0 0px;
+ float: left;
+ cursor: pointer;
+}
View
@@ -0,0 +1,38 @@
+<div id="kuler">
+ <div id="left-panel">
+ <img src="kuler/images/kuler-logo-large.png" alt=" " />
+ <select id="kuler-select">
+ <option value="recent">Newest</option>
+ <option value="popular">Popular</option>
+ <option value="rating">Highest Rated</option>
+ <option value="random">Random</option>
+ <option value="tag">Search Tags</option>
+ <option value="title">Search Title</option>
+ <option value="hex">Search Colors</option>
+ </select>
+ <div id="kuler-search-query">
+ <input />
+ <button id="kuler-search">
+ </button>
+ </div>
+ </div>
+ <div id="center-panel">
+ </div>
+ <div id="right-panel">
+ <div id="kuler-close">
+ <img src="kuler/images/close.png" />
+ </div>
+ <div id="kuler-pages">
+ <div>
+ <br />
+ <br />
+ </div>
+ <div id="kuler-back-page">
+ <img src="kuler/images/arrow-l.png" alt=" " />
+ </div>
+ <div id="kuler-next-page">
+ <img src="kuler/images/arrow-r.png" alt=" " />
+ </div>
+ </div>
+ </div>
+</div>
Oops, something went wrong.

0 comments on commit ea449d9

Please sign in to comment.