コード例 #1
0
ファイル: blog.php プロジェクト: tjankovic/FAB-UI
 public function content()
 {
     $CI =& get_instance();
     $config['icon'] = 'fa fa-comments';
     $config['load'] = widget_url('blog') . 'ajax/feed.php';
     $config['fullscreenbutton'] = 'true';
     $this->initialize($config);
     $_html = $this->view('index', '', TRUE);
     $_widget = $this->get('blog', 'Development Blog', $_html, false, false);
     //$_js     = $this->view('js', '', TRUE);
     //$CI->layout->add_js_in_page(array('data'=> $_js, 'comment' => 'SHORTCUT WIDGET IN PAGE JS'));
     return $_widget;
 }
コード例 #2
0
ファイル: twitter.php プロジェクト: tjankovic/FAB-UI
 public function content()
 {
     $CI =& get_instance();
     $config['icon'] = 'fa fa-twitter';
     $config['sortable'] = 'false';
     $config['fullscreenbutton'] = 'true';
     $config['load'] = widget_url('twitter') . 'ajax/feed.php';
     $this->initialize($config);
     $_html = $this->view('index', '', TRUE);
     $_widget = $this->get('twitter', 'Latest Tweets', $_html, false, false);
     //$_js     = $this->view('js', '', TRUE);
     $CI->layout->add_css_in_page(array('data' => $this->view('css', '', TRUE), 'comment' => 'Twitter CSS'));
     $CI->layout->add_js_in_page(array('data' => $this->view('js', '', TRUE), 'comment' => 'Twitter JS'));
     return $_widget;
 }
コード例 #3
0
ファイル: instagram.php プロジェクト: tjankovic/FAB-UI
 public function content()
 {
     $CI =& get_instance();
     $config['icon'] = 'fa fa-instagram';
     $config['fullscreenbutton'] = 'true';
     $config['load'] = widget_url('instagram') . 'ajax/feed.php';
     $this->initialize($config);
     $_html = $this->view('index', '', TRUE);
     $_widget = $this->get('instagram', 'Instagram', $_html, false, false);
     //$_js     = $this->view('js', '', TRUE);
     //$CI->layout->add_js_in_page(array('data'=> $_js, 'comment' => 'SHORTCUT WIDGET IN PAGE JS'));
     $CI->layout->add_js_file(array('src' => widget_url('instagram') . 'assets/js/masonry.pkgd.min.js', 'external' => true));
     $CI->layout->add_js_file(array('src' => widget_url('instagram') . 'assets/js/imagesloaded.pkgd.min.js', 'external' => true));
     $CI->layout->add_css_in_page(array('data' => $this->view('css', '', TRUE), 'comment' => 'instagram CSS'));
     $CI->layout->add_js_in_page(array('data' => $this->view('js', '', TRUE), 'comment' => 'instagram JS'));
     return $_widget;
 }
コード例 #4
0
ファイル: index.php プロジェクト: tjankovic/FAB-UI
		</div>

		<div class="row">
			<div class="col-sm-8 margin-bottom-10">
				
				<div class="btn-group btn-group-justified">
					<a data-attribue-direction="up" href="javascript:void(0);" class="btn btn-default btn-sm directions "> Y <i class="fa fa-arrow-up"></i></a>
					<a href="javascript:void(0);" class="btn btn-default btn-sm" id="take_photo"><i class="fa fa-camera"></i> <span class="hidden-mobile hidden-tablet">Take a pic</span></a>
					<a data-attribue-direction="down" href="javascript:void(0);" class="btn btn-default btn-sm directions "> Y <i class="fa fa-arrow-down"></i></a>
				</div>
			</div>

			<div class="col-sm-4 ">
				<div class="btn-group btn-group-justified">
					<a  href="<?php 
echo widget_url('cam') . 'media/download.php';
?>
" class="btn btn-default btn-sm"><i class="fa fa-download"></i> <span class="hidden-mobile hidden-tablet"> Download </span></a>
				</div>
			</div>
		</div>

	</div>

	<div class="col-sm-5">

		<ul id="widget-cam-tab" class="nav nav-tabs bordered">
			<li class="active">
				<a href="#tab-photo" data-toggle="tab"><i class="fa fa-camera"></i> Photo</a>
			</li>
			<li>
コード例 #5
0
ファイル: js.php プロジェクト: tjankovic/FAB-UI
	var exposure = $( "#exposure option:selected" ).val();
	var rotation = $( "#rotation option:selected" ).val();
	var metering = $( "#metering option:selected" ).val();
	var flip     = $( "#flip option:selected" ).val();
	
	var data = {iso: iso, size: size, quality: quality, encoding: encoding, imxfx: imxfx, brightness:brightness, 
		contrast: contrast, sharpness: sharpness, saturation: saturation, awb:awb, ev_comp: ev_comp, exposure:exposure, rotation: rotation,
		metering:metering, flip:flip};
	
    
    $('#take_photo').addClass('disabled');
    $('#take_photo').html('<i class="fa fa-spinner fa-spin"></i> Taking picture...');
    $("#raspi_picture").addClass('sfumatura');
    $.ajax({
		  url: '<?php 
echo widget_url('cam');
?>
ajax/picture.php',
		  dataType : 'json',
          type: "POST", 
		  async: true,
          data : data
	}).done(function(response) {
        d = new Date();
       	
       	var src = urlImage + '?time='+d.getTime();
       	  
        $("#raspi_picture").attr('src',src);
	    $('#take_photo').removeClass('disabled');
        $("#raspi_picture").removeClass('sfumatura');
        $('#take_photo').html('<i class="fa fa-camera"></i> Take a pic');   
コード例 #6
0
ファイル: js.php プロジェクト: tjankovic/FAB-UI
	
	
	function load_more(){
		
		
		var button_html = $(".tasks-load-more").html()
		
		$(".tasks-load-more").html('loading..');
		
		limit_start = limit_start + limit_end;
		
		var data = {start : limit_start, end: limit_end, mode: 'lasts'};
		
		$.ajax({
			url: '<?php 
echo widget_url('tasks');
?>
ajax/load_more.php',
		  	dataType : 'html',
          	type: "GET", 
		  	async: true,
          	data : data
		}).done(function(response) {
	        
	       if(response != ''){
	       		$(".tasks-load-more").parent().before(response);
	       		$(".tasks-load-more").html(button_html);
	       		
	       		
	       		$("#lasts-wrap").animate({ scrollTop: $('#lasts-wrap')[0].scrollHeight}, 1000);
	       		
コード例 #7
0
ファイル: js.php プロジェクト: tjankovic/FAB-UI
<script type="text/javascript">
	
	var more_url = '<?php 
echo widget_url('instagram') . 'ajax/more.php';
?>
';
	var more_hash_url = '';
	
	var $grid;


	var InstagramFancyBox = function() {
		return {
			initFancybox : function() {
				jQuery(".fancybox-instagram").fancybox({
					groupAttr : 'data-rel',
					prevEffect : 'fade',
					nextEffect : 'fade',
					openEffect : 'elastic',
					closeEffect : 'fade',
					closeBtn : true,
					helpers : {
						title : {
							type : 'float'
						}
					}
				});

				$(".fbox-modal").fancybox({
					maxWidth : 800,
					maxHeight : 600,