Welcome to mirror list, hosted at ThFree Co, Russian Federation.

site.js « js - github.com/FreeRDP/freerdp.github.io.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 43b90d4f53f00566d3326b598e744e7b24f6c145 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
$(document).ready(function() {
	
	// CSS3 rounded corners / shadows
	$("#commentform textarea, #commentform input[type=text]").addClass("text_field");
	$("#commentform span.required").remove();
	$("#commentform #submit").remove();
	$("#commentform .form-submit")
	 .prepend('<a class="button " href="javascript:;"><span>Post Comment</span></a>')
	 .click(function() {
		$("#commentform").submit();
	});
	
	$("div#header li.current_page_item a, div#header li.current-page-ancestor a").css({ '-moz-border-radius': '6px', '-webkit-border-radius': '6px', 'border-radius': '6px' });
	$("div.widget").css({ '-moz-border-radius': '8px', '-webkit-border-radius': '8px', 'border-radius': '8px' });
	$("div#price_table table").css({ '-moz-border-radius': '8px', '-webkit-border-radius': '8px', 'border-radius': '8px' });
	$("span.highlight_dark, span.highlight_light").css({ '-moz-border-radius': '2px', '-webkit-border-radius': '2px', 'border-radius': '2px' });
	$("div.team ul li a").css({ '-moz-border-radius': '8px', '-webkit-border-radius': '8px', 'border-radius': '8px' });
	$("form .text_field, form #s").css({ '-moz-border-radius': '8px', '-webkit-border-radius': '8px', 'border-radius': '8px' });
	$("a.button span").css({ 'text-shadow': '#000 0px -0px 2px' });
	$("div#page .section_title h3").css({ 'text-shadow': '#3e2828 0px 0px 2px' });

	// Default text field values
	$(".text_field").focus(function(srcc)
  {
      if ($(this).val() == $(this)[0].title)
      {
          $(this).addClass("default_text_active");
          $(this).val("");
      }
  });
  $(".text_field").blur(function()
  {
      if ($(this).val() == "")
      {
          $(this).removeClass("default_text_active");
          $(this).val($(this)[0].title);
      }
  });
  $(".text_field").blur();
	
	$("#features p.hp_feature").each(function(i) {
		if(i == 2 || i == 5 || i == 8) {
			$(this).addClass("last");
			$(this).after('<div class="clear spacer"></div>');
		}
	});
	
	$("#price_table table thead td:last").addClass("last");
	
	$("#price_table table tbody tr").each(function() {
		$("td:last", this).addClass("last");
	});
	
	var plans = $("#price_table table thead td");
	
	switch (plans.size()) {
		case 1 : plans.width("100%"); break;
		case 2 : plans.width("50%"); break;
		case 3 : plans.width("33%"); break;
		case 4 : plans.width("25%"); break;
		case 5 : plans.width("20%"); break;
		case 6 : plans.width("16%"); break;
		case 7 : plans.width("14%"); break;
	}
	
	// Button Hover
	if($.browser.msie && $.browser.version == "7.0") {
		$(".button").css("padding-top", "0px");
	} else {
		jQuery('.button').hover(
			function() { jQuery(this).stop().animate({opacity:0.8},400); },
			function() { jQuery(this).stop().animate({opacity:1},400); }
		);
	}
	
	// Add form submit capability to buttons
	$("a.submit").click(function() {
		$(this).parent().parent().submit();
	});
	
	// Remove border after last tweet in twitter widget
	$("#twitter_update_list li:last").css({'border-bottom' : 'none' });
	
	// Ajax contact form
	$('#send').click(function() {
       var name = $('input#name').val();
       var email = $('input#email').val();
			 var subject = $('select#subject').val();
       var message = $('textarea#message').val();
       $.ajax({
           type: 'post',
           url: $("form#contact_form").attr("action"),
           data: 'name=' + name + '&email=' + email + '&topic=' + subject + '&message=' + message,

           success: function(results) {
							if(results == "error") {
								$('p.validation').html("Please fill in all fields").addClass("error");
							} else {
								$("form#contact_form").fadeOut("fast");
               $('p.validation').html(results);
							}
           }
       }); // end ajax
   });

		// Configure fancybox plugin
		$("a.screenshot").fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	400, 
			'speedOut'		:	400, 
			'overlayShow'	:	false
		});

});