{"size": 4864, "ext": "js", "max_stars_repo_path": "public/js/pages/forms-advanced.js", "max_stars_repo_name": "yunxiao522/laravel5.8", "max_stars_repo_stars_event_min_datetime": "2019-06-20T00:22:07.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-20T00:22:07.000Z", "max_issues_repo_path": "public/js/pages/forms-advanced.js", "max_issues_repo_name": "yunxiao522/laravel5.8", "max_issues_repo_issues_event_min_datetime": "2018-11-27T09:17:45.000Z", "max_issues_repo_issues_event_max_datetime": "2018-11-27T09:17:45.000Z", "max_forks_repo_path": "public/js/pages/forms-advanced.js", "max_forks_repo_name": "yunxiao522/laravel5.8", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 27.6363636364, "max_line_length": 107, "alphanum_fraction": 0.5248766447}
//------------- forms-advanced.js -------------//
$(document).ready(function() {

	//------------- Sparklines in header stats -------------//
    $('#spark-visitors').sparkline([5,8,10,8,7,12,11,6,13,8,5,8,10,11,7,12,11,6,13,8], {
        type: 'bar',
        width: '100%',
        height: '20px',
        barColor: '#dfe2e7',
        zeroAxis: false,
    });

    $('#spark-templateviews').sparkline([12,11,6,13,8,5,8,10,12,11,6,13,8,5,8,10,12,11,6,13,8,5,8], {
        type: 'bar',
        width: '100%',
        height: '20px',
        barColor: '#dfe2e7',
        zeroAxis: false,
    });

    $('#spark-sales').sparkline([19,18,20,17,20,18,22,24,23,19,18,20,17,20,18,22,24,23,19,18,20,17], {
        type: 'bar',
        width: '100%',
        height: '20px',
        barColor: '#dfe2e7',
        zeroAxis: false,
    });

    //------------- Fancy select -------------//
    $('.fancy-select').fancySelect();
    //custom templating
    $('.fancy-select1').fancySelect({
        optionTemplate: function(optionEl) {
            return optionEl.text() + '<i class="pull-left ' + optionEl.data('icon') + '"></i>';
        }
    });

	//------------- Select 2 -------------//
	$('.select2').select2({placeholder: 'Select state'});

	//minumum 2 symbols input
	$('.select2-minimum').select2({
		placeholder: 'Select state',
		minimumInputLength: 2,
	});

	//------------- Masked input fields -------------//
	$("#mask-phone").mask("(999) 999-9999", {completed:function(){alert("Callback action after complete");}});
	$("#mask-phoneExt").mask("(999) 999-9999? x99999");
	$("#mask-phoneInt").mask("+40 999 999 999");
	$("#mask-date").mask("99/99/9999");
	$("#mask-ssn").mask("999-99-9999");
	$("#mask-productKey").mask("a*-999-a999", { placeholder: "*" });
	$("#mask-eyeScript").mask("~9.99 ~9.99 999");
	$("#mask-percent").mask("99%");

	//------------- Dual list box -------------//
	$('.duallistbox').bootstrapDualListbox({
	    nonSelectedListLabel: 'Non-selected',
  		selectedListLabel: 'Selected',
	    preserveSelectionOnMove: 'moved',
	    moveOnSelect: false,
	});

	//------------- Spinners -------------//
	$("#basic-spinner").TouchSpin({
        min: 0,
        max: 100
    });
    //with postfix
    $("#postfix-spinner").TouchSpin({
        min: 0,
        max: 100,
        postfix: '%'
    });
    //with prefix
    $("#prefix-spinner").TouchSpin({
        min: 0,
        max: 100,
        prefix: '$'
    });
    //decimal spinner
    $("#decimal-spinner").TouchSpin({
        min: 1,
        max: 10,
        step: 0.1,
        decimals: 2
    });
    //vertical buttons
    $("#vertical-spinner").TouchSpin({
        verticalbuttons: true,
        verticalupclass: 'fa fa-angle-up s12',
        verticaldownclass: 'fa fa-angle-down s12'
    });

    //------------- Datepicker -------------//
    $("#basic-datepicker").datepicker();
    //multiple date
    $("#multiple-datepicker").datepicker({
    	multidate: true
    });
    //date range
    $(".input-daterange").datepicker();
    //inline
    $("#inline-datepicker").datepicker();

    //------------- Timepicker -------------//
    $('#default-timepicker').timepicker({
    	upArrowStyle: 'fa fa-angle-up',
    	downArrowStyle: 'fa fa-angle-down',
    });
    //custom time
    $('#customtime-timepicker').timepicker({
    	upArrowStyle: 'fa fa-angle-up',
    	downArrowStyle: 'fa fa-angle-down',
    	defaultTime: '22:45 AM'
    });
    //custom minute step
    $('#minute-step-timepicker').timepicker({
    	upArrowStyle: 'fa fa-angle-up',
    	downArrowStyle: 'fa fa-angle-down',
    	minuteStep: 30
    });
    //show seconds
    $('#show-seconds-timepicker').timepicker({
    	upArrowStyle: 'fa fa-angle-up',
    	downArrowStyle: 'fa fa-angle-down',
    	showSeconds: true
    });

    //------------- Colorpicker -------------//
    $('#default-colorpicker').colorpicker();
    //as component
    $('#component-colorpicker').colorpicker({
    	color: '#1fba5d'
    });
    //horizontal
    $('#horizontal-colorpicker').colorpicker({
    	horizontal: true
    });
    //inline
     $('#inline-colorpicker').colorpicker({
    	inline: true,
    	container: '.inline-picker'
    });

    //------------- Tags -------------//
    //from json
    var citynames = new Bloodhound({
	  datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
	  queryTokenizer: Bloodhound.tokenizers.whitespace,
	  prefetch: {
	    url: 'ajax/citynames.json',
	    filter: function(list) {
	      return $.map(list, function(cityname) {
	        return { name: cityname }; });
	    }
	  }
	});
	citynames.initialize();

	$('#json-tags').tagsinput({
		typeaheadjs: {
			name: 'citynames',
			displayKey: 'name',
			valueKey: 'name',
			source: citynames.ttAdapter()
		}
	});

    //------------- WYSIWYG summernote -------------//
    $('#summernote').summernote({
        height: 200
    });

});