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
<?php | |
$yuiLocation = '/Users/antonis/Sites/yui/build/yuicompressor-2.4.8pre.jar'; | |
$public = '/Users/antonis/Sites/branches/development/public/'; | |
$version = '1112v3'; | |
$css = $public . 'css/'; | |
$js = $public . 'js/custom/'; | |
$cssMinify = new PhpIMinifier($css, $version, 'css'); | |
$cssMinify->setYuiCompressorExec($yuiLocation); |
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
define([], function () { | |
return function (name, content) { | |
this.name = name, | |
this.content = content, | |
this.getHtml = function() { | |
return "<div class='slide' id='#" + this.name + "'>" + content + "</div>"; | |
} | |
} | |
}); |
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
// slides model | |
define([], function () { | |
return function (containerId) { | |
this.containerId = containerId, | |
this.slideWidth = 400, | |
this.slidePosition = 0, | |
this.totalSlidesNo = 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
define(['slides/model', 'slides/slide'], function (model, slide) { | |
$(document).ready(function() { | |
var slidesModel = new model('slides_container'); | |
slidesModel.addSlide(new slide('slide1', 'my first slide')); | |
slidesModel.addSlide(new slide('slide2', 'my second slide')); | |
slidesModel.addSlide(new slide('slide3', 'my third slide')); | |
slidesModel.addSlide(new slide('slide4', 'my fourth slide')); | |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>A simple slider with jQuery and curl.js</title> | |
<link rel="stylesheet" type="text/css" href="/jQuery_curl/styles/slides.css"> | |
<script src="/jQuery_curl/lib/jquery/jquery-1.9.0.js" type="text/javascript"></script> | |
<script src="/jQuery_curl/lib/curl/curl.js" type="text/javascript"></script> |
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
@charset "UTF-8"; | |
body{ | |
background-color:#ffffff; | |
} | |
#container{ | |
position:absolute; | |
left:0px; | |
top:0px; |
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
<?php | |
// public/index.php | |
$path = realpath('../'); | |
define('ROOT', $path); | |
include ROOT . '/Bootstrap.php'; |
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
<?php | |
require ROOT . '/vendor/autoload.php'; | |
use App\HelloWorld; | |
$hello = new HelloWorld(); | |
echo $hello; |
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
<?php | |
namespace App; | |
class HelloWorld | |
{ | |
private $msg = 'Hello World'; | |
public function __construct($msg = '') |
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
<html> | |
<head> | |
<title>Hello world with composer</title> | |
</head> | |
<body> | |
<p><?php echo $this->hello . '!'; ?></p> | |
</body> | |
</html> |
OlderNewer