LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code



Create New Lectuer






CSS
*{
  margin:0;
  padding:0;
  outline:none;
}
body{
  padding:20px;
}

div.lec{
  position: relative;
  display:none;
  margin-top: 20px;
  padding:10px;
  text-align: center;
  background-color: rgb(199, 199, 199);
  width:300px;
  height:280px;
  border-radius:5px;
}
input{
  padding:5px;
  width:200px;
  margin:5px;
  font-size:15px;
}
button{
  padding:5px;
  width:220px;
  margin:5px;
  font-size:15px;
}
h1{
  font-size:34px
}
a{
  font-size:26px;
  text-decoration:none;
  color: rgb(0, 174, 239);
}


/*   $(".new").click(function () {
    $(".lec-sec").append("");
    
    $(".lec-num").text($(".number").val());
    $(".lec-name").text($(".title").val());
    $(".prev").attr("href", $(".preview-link").val());
    $(".down").attr("href", $(".download-link").val());
  }); */
/*   $(".login").click(function () {
    var user = $(".user").val(),
        pass = $(".pass").val();
    if(user === "admin" && pass === "admin") {
      $(".lec").css("display","block");
    } else {
    window.location.replace("#");
    }
  }); */
JS
$(document).ready(function () {
  $(".login").click(function () {
    var user = $(".user").val(),
        pass = $(".pass").val();
    if(user === "admin" && pass === "admin") {
      $(".lec").css("display","block");
    } else {
    window.location.replace("https://www.google.com");
    }
  });
  $(".new").click(function () {
    $(".lec-sec").append("");

    $(".lec-num").text($(".number").val());
    $(".lec-name").text($(".title").val());
    $(".prev").attr("href", $(".preview-link").val());
    $(".down").attr("href", $(".download-link").val());
  });
});
Term
Tue, 12/26/2017 - 12:06

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv