Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sourceforge.jsdialect.util;
 
 import java.util.Map;
 
 public final class JsDialectResources {
 
     public static final String DIALECT_JS = "dialectJs";
     public static final String COOKIES_JS = "cookiesJs";
    public static final String JQUERY_JS = "jqueryJs";
    public static final String JQUERY_UI_JS = "jqueryUiJs";
    public static final String JQUERY_UI_CSS = "jqueryUiCss";
    public static final String JQUERY_UI_I18N = "jqueryUiI18n";
    public static final String JQUERY_VALIDATION_JS = "jqueryValidationJs";
    public static final String JQUERY_VALIDATION_ADDITIONAL_JS = "jqueryValidationAdditionalJs";
    public static final String JQUERY_VALIDATION_LOCALE_DIR = "jqueryValidationLocaleDir";
    public static final String JQUERY_FORM_JS = "jqueryFormJs";
    public static final String JQUERY_COOKIE_JS = "jqueryCookieJs";
    public static final String TOOLTIP_JS = "tooltipJs";
    public static final String FANCYBOX_JS = "fancyboxJs";
    public static final String FANCYBOX_EASING_JS = "fancyboxEasingJs";
    public static final String FANCYBOX_CSS = "fancyboxCss";
    public static final String SWIPEBOX_JS = "swipeboxJs";
    public static final String SWIPEBOX_CSS = "swipeboxCss";
    public static final String CKEDITOR_JS = "ckeditorJs";
    public static final String GMAP_JS = "gmapJs";
    public static final String CAROUFREDSEL_JS = "caroufredselJs";
    public static final String CAROUFREDSEL_CSS = "caroufredselCss";
    public static final String JQUERY_TOUCH_SWIPE_JS = "jqueryTouchSwipeJs";
    public static final String TIMEPICKER_JS = "timepickerJs";
    public static final String TIMEPICKER_SLIDER_JS = "timepickerSliderJs";
    public static final String TIMEPICKER_CSS = "timepickerCss";
    public static final String TIMEPICKER_LOCALE_DIR = "timepickerLocaleDir";
    public static final String COUNTDOWN_JS = "countdownJs";
    public static final String COUNTDOWN_CSS = "countdownCss";
    public static final String COUNTDOWN_IMAGE = "countdownImage";
    public static final String COUNTDOWN_MINI_IMAGE = "countdownMiniImage";
    public static final String TWITTER_JS = "twitterJs";
    public static final String ANALYTICS_JS = "analyticsJs";
    public static final String RESPONSIVE_NAV_JS = "responsiveNavJs";
    public static final String RESPONSIVE_NAV_CSS = "responsiveNavCss";
    private JsDialectResources(){
    }
    // TODO: add online defaults for all dependences
    private static final Map<StringStringDEFAULT_URLS = new HashMap<StringString>() {{
        put("/net.sourceforge.jsdialect/jsdialect.js");
        put("/net.sourceforge.jsdialect/cookies.js");
        put("http://code.jquery.com/jquery-1.8.3.js");
        put("http://code.jquery.com/ui/1.9.2/jquery-ui.js");
        put("http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css");
        put("http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/i18n/jquery-ui-i18n.min.js");
        put("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js");
        put("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/additional-methods.min.js");
        put("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/localization/messages_en.js ");
        put("http://malsup.github.com/min/jquery.form.min.js");
        put("http://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js");
        put("http://cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.pack.js");
        put("http://cdnjs.cloudflare.com/ajax/libs/fancybox/1.3.4/jquery.easing-1.3.pack.js");
        put("http://cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.css");
        put("http://cdn.jsdelivr.net/jquery.swipebox/1.2.1/jquery.swipebox.min.js");
        put("http://cdn.jsdelivr.net/jquery.swipebox/1.2.1/swipebox.css");
        put("http://cdn.jsdelivr.net/ckeditor/4.2/ckeditor.js");
        put("http://maps.googleapis.com/maps/api/js");
        put("http://cdn.jsdelivr.net/caroufredsel/6.2.1/jquery.carouFredSel.packed.js");
        put("http://svn.code.sf.net/p/jsdialect/code/trunk/core/src/main/resources/caroufredsel.css"); // FIXME: not in CDN
        put("http://cdnjs.cloudflare.com/ajax/libs/jquery.touchswipe/1.6.4/jquery.touchSwipe.min.js");
        put("http://cdn.jsdelivr.net/jquery.ui.timepicker.addon/1.3.1/jquery-ui-timepicker-addon.js");
        put("http://cdn.jsdelivr.net/jquery.ui.timepicker.addon/1.3.1/jquery-ui-sliderAccess.js");
        put("http://cdn.jsdelivr.net/jquery.ui.timepicker.addon/1.3.1/jquery-ui-timepicker-addon.css");
        put("https://raw.github.com/trentrichardson/jQuery-Timepicker-Addon/master/src/i18n/"); // FIXME: not in CDN
        put("http://cdn.jsdelivr.net/countdown/1.6.1/jquery.countdown.min.js");
        put("http://cdn.jsdelivr.net/countdown/1.6.1/jquery.countdown.css");
        put("http://svn.code.sf.net/p/jsdialect/code/trunk/core/src/main/resources/countdown.png"); // FIXME: not in CDN
        put("http://svn.code.sf.net/p/jsdialect/code/trunk/core/src/main/resources/countdown-mini.png"); // FIXME: not in CDN
        put("http://platform.twitter.com/widgets.js");
        put("http://www.google-analytics.com/ga.js");
        put("http://cdn.jsdelivr.net/responsive-nav/1.0.15/responsive-nav.js");
        put("http://cdn.jsdelivr.net/responsive-nav/1.0.15/responsive-nav.css");
    }};
    public static String getResourceUrl(String resourceKey) {
        return .get(resourceKey);
    }
New to GrepCode? Check out our FAQ X