-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matija Urh
committed
Aug 3, 2011
0 parents
commit 9c08f6c
Showing
8 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#header{font:75% "Lucida Grande","Trebuchet MS",Verdana,sans-serif;padding:10px}#wrapper{width:100%;height:300px;margin-left:20px}#footer{background-image:none;padding:0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#header{ | ||
font: 75% "Lucida Grande", "Trebuchet MS", Verdana, sans-serif; | ||
padding: 10px;} | ||
|
||
#wrapper{ | ||
width: 100%; | ||
height: 300px; | ||
margin-left: 20px;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* This is organized file | ||
*/ | ||
|
||
/** | ||
* Functions | ||
*/ | ||
function one() { | ||
// Function one here | ||
} | ||
|
||
function two() { | ||
// Function two here | ||
} | ||
|
||
/** | ||
* Helpers | ||
*/ | ||
function helper() { | ||
// Helper here | ||
} | ||
|
||
/** | ||
* Document ready | ||
*/ | ||
|
||
$(document).ready(function () { | ||
one(); | ||
helper(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
echo | ||
echo Hello. Grouper here | ||
echo - - - - - - - - - - | ||
echo | ||
echo - JS files | ||
|
||
# Empty js_code file | ||
echo "" > js_code.js.all | ||
echo "/* File with all JS code */" > js_code.js.all | ||
|
||
for f in *.js; | ||
do | ||
echo "Putting file $f into .all"; | ||
echo "\n/*--- $f ---*/\n" >> js_code.js.all | ||
cat $f >> js_code.js.all | ||
done | ||
|
||
# Rename js_code.js.all | ||
mv js_code.js.all js_code.js | ||
|
||
# Compress js file | ||
java -jar yuicompressor-2.4.7pre.jar js_code.js -o js_code.min.js | ||
|
||
rm js_code.js | ||
mv js_code.min.js js_code.min | ||
|
||
echo | ||
echo - CSS files | ||
|
||
# Empty css_code file | ||
echo "" > css_code.css.all | ||
echo "/* File with all CSS code */" > css_code.css.all | ||
|
||
for f in *.css; | ||
do | ||
echo "Putting file $f into .all"; | ||
echo "\n/*--- $f ---*/\n" >> css_code.css.all | ||
cat $f >> css_code.css.all | ||
done | ||
|
||
# Rename css_code.css.all | ||
mv css_code.css.all css_code.css | ||
|
||
# Compress css file | ||
java -jar yuicompressor-2.4.7pre.jar css_code.css -o css_code.min.css | ||
|
||
rm css_code.css | ||
mv css_code.min.css css_code.min |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function one(){}function two(){}function helper(){}$(document).ready(function(){one();helper()});function abracadabra(){}$(document).ready(function(){abracadabra()}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#footer { | ||
background-image: none; | ||
padding: 0;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* This is unorganized file | ||
*/ | ||
|
||
function abracadabra(){ | ||
// Rabbit out of the hat | ||
} | ||
|
||
$(document).ready(function () { | ||
abracadabra(); | ||
}); |
Binary file not shown.