Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- $(".con").load("views/startseite.php", function () {
- $(".scroll").jScrollPane({mouseWheelSpeed:20});$(".jspDrag").hide();$(".jspScrollable").mouseenter(function(){$(this).find(".jspDrag").stop(!0,!0).fadeIn()});$(".jspScrollable").mouseleave(function(){$(this).find(".jspDrag").stop(!0,!0).fadeOut()})
- });
- $("nav a").click(function (a) {
- a.preventDefault();
- a = $(this).attr("href").split("/").pop().split(".").shift();
- $(".con").hide().load("views/" + a + ".php", function () {
- $(".con").fadeIn("fast",
- function () {
- $(".scroll").jScrollPane({mouseWheelSpeed:20});$(".jspDrag").hide();$(".jspScrollable").mouseenter(function(){$(this).find(".jspDrag").stop(!0,!0).fadeIn("slow")});$(".jspScrollable").mouseleave(function(){$(this).find(".jspDrag").stop(!0,!0).fadeOut("slow")})})
- });
- document.title = "My-Domain.com | " + (a.substr(0, 1).toUpperCase() + a.substr(1));
- location.hash = a;
- return !1
- })
- $(document).on('submit', 'form.ajax', function (e) {
- e.preventDefault();
- var that = $(this),
- url = that.attr('action'),
- type = that.attr('method'),
- data = {};
- that.find('[name]').each(function (index, value) {
- var that = $(this),
- name = that.attr('name'),
- value = that.val();
- data[name] = value
- });
- $.ajax({
- url: url,
- type: type,
- data: data,
- success: function () {
- $(".flipbox").flippy({
- color_target: "",
- duration: "500",
- verso: "Anything!",
- onFinish: function () {
- $("#no-color").css("background-color", "transparent");
- }
- });
- }
- });
- });
- $(document).on('submit', 'form.lebenslauf', function (e) {
- e.preventDefault();
- var $this = $(this);
- $.ajax({
- url: './secure/secure.php',
- type: 'post',
- data: {
- code: $('input[name=bewerbung]').val()
- },
- success: function (resp) {
- if (resp.substr(0, 5) == "Error") {
- $('.error').html(resp);
- } else {
- $('.flipbox').flippy({
- duration: "500",
- verso: resp,
- onFinish: function () {
- $(".flipbox").css("background-color", "transparent");
- }
- });
- }
- }
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment