Skip to content

FalafelSoftwareInc/Falafel.Async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 

Repository files navigation

[Falafel.Async]

================== https://github.com/FalafelSoftwareInc/Falafel.Async

Repository containing a set of shared & commonly used js libraries & style files for use with development. All files are minified for production use, excluding Bootstrap, Kendo & Sitefinity .LESS files.

Async/libs

Library collection to be used with require.js asynchronous loading:

/backbone

  • Description: Provides models with key-value binding, collections with an API and view in a JSON interface.
  • Version: 0.0.0
  • Status: Fork
  • Source: http://backbonejs.org/

/bootstrap

/bxslider

  • Description: Responsive jQuery Content Slider.
  • Version: 0.0.0
  • Status: Fork
  • Source: http://bxslider.com/

/html5shiv

/innerfade

/jquery

/jquery-ui

  • Description: Customized for Sitefinity v5.4 compatibility.
  • Version: 0.0.0
  • Status: Customized
  • Source: http://jqueryui.com/

/js-url

/kendoui/all

  • Description: Combined version of Kendo UI DataViz, Web & Mobile
  • Version: 0.0.0
  • Status: Customized
  • Source: http://www.kendoui.com

/kendoui/dataviz

/kendoui/mobile

/kendoui/mvc

/kendoui/web

/mediaelement

/modernizr

  • Description: Feature detection library for HTML5/CSS3
  • Version: 0.0.0
  • Status: Fork
  • Source: http://modernizr.com/

/moment

/mustache

/parse

/require

/respond

/sitefinity

  • Description: Less & css version of minimal reset styles, and web services API
  • Version: 0.0.0
  • Status: Customized
  • Source: n/a

/toastr

/underscore

Support & Copyright

All data & samples are provided as is and merely aggregated. For licensing & copyright information check the respective links.

Notes

Do not change anything in the ~/Async folder! Updates will overwrite your changes. To initialize your app or extend the RequireJS configurations, add your script file after "require.js" and "main.js" on the page.

Follow this sample for your custom file if needed:

/**
* Extend root main.js with this file
*/
; (function () {
    //DETERMINE BASE URL FROM CURRENT SCRIPT PATH
    var scripts = document.getElementsByTagName('script');
    var src = scripts[scripts.length - 1].src;
    var currentUrl = src.substring(src.indexOf(document.location.pathname), src.lastIndexOf('/'));

    //EXTEND REQUIREJS CONFIG
    require.config({
        paths: {
            exampleplugin: currentUrl + '/libs/example/example.min'
        },
        shim: {
            exampleplugin: ['jquery']
        }
    });

    //INITIALIZE MY APP
    require([
        'jquery',
		'underscore',
        'bootstrap3',
        'kendoui/kendo.core.min'
    ], function ($, _) {

        var init = function () {
            //INITIALIZE APP PARTS
            initElements();
        };

        var initElements = function () {
			//ADD TITLE TO HTML TAG AS CLASS
			if (document.title)
			  $(document.documentElement)
				.addClass(_.slugify(document.title));
			  
            //ON DOC READY
            $(function () {
                //PLACEHOLDER FOR DOM ELEMENTS UPDATES
            });
        };

        //INITIALIZE APP
        init();
    });
})();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •