Blame view

promo/code.js 485 Bytes
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  (function($) {
  $.fn.prd = function(y){
  
      var height = $(window).height();
      var width = $(window).width();
      var heightC = $(this).height();
      var widthC = $(this).width();
  
      var nW = (width/2)-widthC/2;
      var nH = (height/2)-heightC/2;
  
      $(this).css('left', nW);
      $(this).css('top', nH);
      
  
  
     };
     
  $(window).bind("resize", function(){
                     $('#content').prd();
                  });
     
  })(jQuery);
  $(function() {
        $('#content').prd();
  });