Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Modernizr.load({
- test: Modernizr.fontface && Modernizr.borderradius && Modernizr.opacity,
- yep: ["css/main.css","css/colorbox.css", "http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"],
- nope: "js/custom-redirect.js",
- callback: {"2": function(url, result, key) {
- console.log("TESTANDO!");
- if (result) {
- Modernizr.load({
- load: "js/jquery.colorbox-min.js",
- complete: function() {
- $(function() {
- $(".project-picture > a").colorbox({
- rel: "colorbox",
- onOpen: function() {
- $("#cboxNext").text("");
- $("#cboxPrevious").text("");
- },
- onLoad: function() {
- if ($("#cboxClose").text()!="X") $("#cboxClose").text("X");
- $("#cboxTitle").text("");
- $("#cboxSeeThisProject").remove();
- },
- onComplete: function() {
- $("#cboxCurrent").hide();
- $("#cboxNext").text(">");
- $("#cboxPrevious").text("<");
- $("#cboxContent").append('<a id="cboxSeeThisProject" href="#">See this project</a>');
- }
- });
- $("#cboxContent").addClass("cboxBorder");
- });
- }
- });
- }
- }}
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement