Advertisement
Guest User

mfilipe

a guest
Feb 25th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Modernizr.load({
  2.     test: Modernizr.fontface && Modernizr.borderradius && Modernizr.opacity,
  3.     yep: ["css/main.css","css/colorbox.css", "http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"],
  4.     nope: "js/custom-redirect.js",
  5.     callback: {"2": function(url, result, key) {
  6.         console.log("TESTANDO!");
  7.         if (result) {
  8.             Modernizr.load({
  9.                 load: "js/jquery.colorbox-min.js",
  10.                 complete: function() {
  11.                     $(function() {
  12.                         $(".project-picture > a").colorbox({
  13.                             rel: "colorbox",
  14.                             onOpen: function() {
  15.                                 $("#cboxNext").text("");
  16.                                 $("#cboxPrevious").text("");       
  17.                             },
  18.                             onLoad: function() {
  19.                                 if ($("#cboxClose").text()!="X") $("#cboxClose").text("X");
  20.                                 $("#cboxTitle").text("");
  21.                                 $("#cboxSeeThisProject").remove();
  22.                             },
  23.                             onComplete: function() {
  24.                                 $("#cboxCurrent").hide();
  25.                                 $("#cboxNext").text(">");
  26.                                 $("#cboxPrevious").text("<");
  27.                                 $("#cboxContent").append('<a id="cboxSeeThisProject" href="#">See this project</a>');
  28.                             }
  29.                         });
  30.  
  31.                         $("#cboxContent").addClass("cboxBorder");
  32.                     });
  33.                 }
  34.             });
  35.         }
  36.     }}
  37. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement