Commit 581ab47f authored by reynaldi adriantama's avatar reynaldi adriantama

desember tgl 12

parent 99349321
...@@ -308,7 +308,37 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -308,7 +308,37 @@ class ApiController extends \Application\Master\GlobalActionController {
return $this->getOutput($result->toJson()); return $this->getOutput($result->toJson());
} }
public function loadchartvideoAction(){
$result = new Result();
$request = $this->getRequest();
$post = $request->getPost();
//$name = $this->isFieldMandatory(@$data['name'], 'name');
$storage = \Application\Model\Param\Storage::factory($this->getDb(), $this->getConfig());
$test = new \Application\Model\Param($storage);
$token = $post->token;
$web = $test->getweb($token);
$idweb = $web->data[0]['id_web'];
$country = $post->country;
$province = $post->province;
$city = $post->city;
$loadimage = $test->loadChartvideo($idweb, $country, $province, $city);
if($loadimage->code == 0){
$result->code = $result::CODE_SUCCESS;
$result->info = $result::INFO_SUCCESS;
$result->data = $loadimage->data;
}else{
$result->code = 1;
$result->info = 'Not Found';
}
return $this->getOutput($result->toJson());
}
public function loadbuttonAction(){ public function loadbuttonAction(){
$result = new Result(); $result = new Result();
$request = $this->getRequest(); $request = $this->getRequest();
...@@ -556,10 +586,10 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -556,10 +586,10 @@ class ApiController extends \Application\Master\GlobalActionController {
$tabel3 = 'website_list'; $tabel3 = 'website_list';
$where3 = 'id_web='.$post->id; $where3 = 'id_web='.$post->id;
//print_r($where3);die; // print_r($where3);die;
$res = $test->deleteGlobal($tabel3, $where3); $res = $test->deleteGlobal($tabel3, $where3);
if($load->code == 0){ if($res->code == 0){
$result->code = $result::CODE_SUCCESS; $result->code = $result::CODE_SUCCESS;
$result->info = $result::INFO_SUCCESS; $result->info = $result::INFO_SUCCESS;
}else{ }else{
...@@ -834,16 +864,19 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -834,16 +864,19 @@ class ApiController extends \Application\Master\GlobalActionController {
$dataArray = array ( $dataArray = array (
'status' => 10, 'status' => 10,
); );
$result->info = "User Deactivation Sucess!"; $result->info = "User Activation Success!";
} else if ($code == "DEACTIVATE"){ } else if ($code == "DEACTIVATE"){
$dataArray = array ( $dataArray = array (
'status' => 30, 'status' => 30,
); );
$result->info = "User Activation Sucess!"; $result->info = "User Deactivation Success!";
} }
$param->updateGlobal($tabel, $dataArray, $where); $model = $param->updateGlobal($tabel, $dataArray, $where);
$result->info = "User Activation Sucess!"; // if($model->code == 0){
// }
//$session['name'] = $name; //$session['name'] = $name;
}catch(\Exception $exc){ }catch(\Exception $exc){
...@@ -1700,9 +1733,12 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -1700,9 +1733,12 @@ class ApiController extends \Application\Master\GlobalActionController {
// echo "halo braiiiiiiiiiiiiiiiiiiii"; // echo "halo braiiiiiiiiiiiiiiiiiiii";
if($request->isPost()){ if($request->isPost()){
$datafile = $request->getFiles()->toArray(); $datafile = $request->getFiles()->toArray();
// print_r($datafile);die;
// if($datafile['myfile2']['error'] != 4){
// print_r('masuk ga');die;
// }
$datapost = $request->getPost()->toArray(); $datapost = $request->getPost()->toArray();
} // print_r("masuk");die;
$array_merge = array_merge($datafile, $datapost); $array_merge = array_merge($datafile, $datapost);
// $this->redirect()->toRoute('home'); // $this->redirect()->toRoute('home');
// print_r($array_merge['myfile2']['name']);die; // print_r($array_merge['myfile2']['name']);die;
...@@ -1737,6 +1773,11 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -1737,6 +1773,11 @@ class ApiController extends \Application\Master\GlobalActionController {
$result->info = 'Not Found'; $result->info = 'Not Found';
} }
} }
} else {
$result->code = 1;
$result->info = "Gambar Kosong";
}
} }
} }
......
...@@ -207,6 +207,7 @@ class UserController extends \Application\Master\GlobalActionController ...@@ -207,6 +207,7 @@ class UserController extends \Application\Master\GlobalActionController
'email' => $session_data->get('email'), 'email' => $session_data->get('email'),
'username' => $session_data->get('usernamed'), 'username' => $session_data->get('usernamed'),
'pp' => $session_data->get('profilepicture'), 'pp' => $session_data->get('profilepicture'),
// 'msg' => $session_data->get('msg'),
)); ));
......
...@@ -84,6 +84,7 @@ class UseranalyticsController extends \Application\Master\GlobalActionController ...@@ -84,6 +84,7 @@ class UseranalyticsController extends \Application\Master\GlobalActionController
$this->headScript->appendFile('/template/js/demo/chart-pie2-demo.js'); $this->headScript->appendFile('/template/js/demo/chart-pie2-demo.js');
$this->headScript->appendFile('/template/js/demo/chart-pie-demo.js'); $this->headScript->appendFile('/template/js/demo/chart-pie-demo.js');
$this->headScript->appendFile('/template/js/demo/chart-pie3-demo.js'); $this->headScript->appendFile('/template/js/demo/chart-pie3-demo.js');
$this->headScript->appendFile('/template/js/demo/chart-pie4-demo.js');
$this->headScript->appendFile('/template/js/demo/table-user-info.js'); $this->headScript->appendFile('/template/js/demo/table-user-info.js');
$this->headScript->appendFile('/template/js/demo/chart-area-demo.js'); $this->headScript->appendFile('/template/js/demo/chart-area-demo.js');
$this->headScript->appendFile('/template/js/demo/chart-bar-demo.js'); $this->headScript->appendFile('/template/js/demo/chart-bar-demo.js');
......
...@@ -95,6 +95,10 @@ class Param extends Mapper { ...@@ -95,6 +95,10 @@ class Param extends Mapper {
} }
public function loadChartvideo($idweb, $country, $province, $city){
$data = $this->_storage->loadChartDatavideo($idweb, $country, $province, $city);
return $data;
}
public function loadUserLogin($id = null){ public function loadUserLogin($id = null){
$data = $this->_storage->userLoginData($id); $data = $this->_storage->userLoginData($id);
......
...@@ -459,6 +459,61 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton { ...@@ -459,6 +459,61 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
return $result; return $result;
} }
public function loadChartDatavideo($idweb, $country, $province, $city){
$result = new Result();
try {
$sql = "SELECT ui.nodevideo, count(*) FROM userweb_detailvideo ud
INNER JOIN userweb_video ui
ON ui.id_video = ud.id_video
INNER JOIN userweb_info uin
ON uin.id_user = ud.id_user
INNER JOIN userweb_location ulo
ON ulo.id_location = uin.id_location
WHERE uin.id_web = $idweb";
if($country && $province && $city){
$sql .= "AND ulo.country = '$country' AND ulo.province='$province' AND ulo.city='$city'";
}else if ($country && $province){
$sql .= "AND ulo.country = '$country' AND ulo.province='$province'";
}else if($country){
$sql .= "AND ulo.country = '$country'";
}
$sql .= "GROUP BY ud.id_video, ui.id_video
ORDER BY count DESC
LIMIT 5";
// print_r($sql);die;
$stmt = $this->_db->query($sql);
$resdata = $stmt->execute();
$listdata = array();
foreach($resdata as $val){
// print_r($val);die;
array_push($listdata, $val);
}
if ($listdata) {
$result->code = 0;
$result->info = 'OK';
$result->data = $listdata;
}else{
$result->code = 1;
$result->info = 'nok';
}
}catch (\Zend\Db\Adapter\Exception\RuntimeException $ex) {
$result->code = 3;
$result->info = 'ERROR : ' . $ex->getMessage();
}catch (\Exception $ex) {
$result->code = 4;
$result->info = 'ERROR : ' . $ex->getMessage();
}
return $result;
}
public function loadTableUserData($idweb){ public function loadTableUserData($idweb){
$result = new Result(); $result = new Result();
try { try {
...@@ -1887,7 +1942,12 @@ public function totallocation($idweb){ ...@@ -1887,7 +1942,12 @@ public function totallocation($idweb){
public function pageviews($idweb){ public function pageviews($idweb){
$result = new Result(); $result = new Result();
$sql = "SELECT count(*) FROM userweb_detailpage"; $sql = "SELECT count(*) FROM userweb_detailpage ud
INNER JOIN userweb_page up
ON up.id_page = ud.id_page
INNER JOIN website_list wl
ON wl.id_web = up.id_web
WHERE wl.id_web = $idweb";
$stmt = $this->_db->query($sql); $stmt = $this->_db->query($sql);
$proced = $stmt->execute(); $proced = $stmt->execute();
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="modal-body">Delete Data?</div> <div class="modal-body">Delete Data?</div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button> <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
<button id="deleteModal" class="btn btn-danger">OK</button> <button id="btndeleteModal" class="btn btn-danger">OK</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -84,14 +84,14 @@ ...@@ -84,14 +84,14 @@
</button> </button>
</div> </div>
<div class="text-center p-t-12"> <!-- <div class="text-center p-t-12">
<span class="txt1"> <span class="txt1">
Forgot Forgot
</span> </span>
<a class="txt2" href="#"> <a class="txt2" href="#">
Username / Password? Username / Password?
</a> </a>
</div> </div> -->
<div class="text-center p-t-136"> <div class="text-center p-t-136">
<a class="txt2" href="<?php echo $this->basePath('user/registration');?>"> <a class="txt2" href="<?php echo $this->basePath('user/registration');?>">
......
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
<div class="row justify-content-center mt-4"> <div class="row justify-content-center mt-4">
<br><input type="file" onchange="readURL(this)" id="myfile2" name="myfile2" /> <br><input type="file" onchange="readURL(this)" id="myfile2" name="myfile2" />
</div> </div>
<!-- <div class="text-center"><?php echo $this->msg; ?></div> -->
<!-- <button value="upload" type="submit" class="btn btn-primary" id="btnEditpp" href="<?php //echo $this->basePath('user/logout'); ?>">Change</button> --> <!-- <button value="upload" type="submit" class="btn btn-primary" id="btnEditpp" href="<?php //echo $this->basePath('user/logout'); ?>">Change</button> -->
<!-- </form> --> <!-- </form> -->
</div> </div>
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
<div class="row"> <div class="row">
<div class="col-xl-5 col-lg-6"> <div class="col-xl-6 col-lg-6">
<div class="card shadow mb-4"> <div class="card shadow mb-4">
<!-- Card Header - Dropdown --> <!-- Card Header - Dropdown -->
<div class="card-header py-3 align-items-center justify-content-between"> <div class="card-header py-3 align-items-center justify-content-between">
...@@ -308,9 +308,50 @@ ...@@ -308,9 +308,50 @@
</div> </div>
</div> </div>
<div class="col-xl-6 col-lg-6">
<div class="card shadow mb-4">
<!-- Card Header - Dropdown -->
<div class="card-header py-3 align-items-center justify-content-between">
<h6 class=" font-weight-bold text-primary" id="visitorLodwdwcation">Video View</h6>
<div class="dropdown no-arrow">
<label style="font-size:10px" >Country :</label>
<select id='selectcountryvideo' class="custom-select" style="width:90px; height:25px; font-size:10px">
<optgroup label="Country">
</optgroup>
</select>
<label style="font-size:10px" >Provin :</label>
<select id='selectprovincevideo' class="custom-select" style="width:90px; height:25px; font-size:10px">
<optgroup label="Location">
</optgroup>
</select>
<label style="font-size:10px" >City :</label>
<select id='selectcityvideo' class="custom-select" style="width:90px; height:25px; font-size:10px">
<optgroup label="Location">
</optgroup>
</select>
</div>
</div>
<!-- Card Body -->
<div class="card-body border-bottom-info">
<div class="chart-pie pt-4 pb-2">
<canvas id="myPieChart5"></canvas>
</div>
<div class="mt-4 text-center small" id="infoChartVideo">
<!-- info kota dinamis -->
</div>
</div>
</div>
</div>
<!-- ButtonClicks -->
</div>
<div class="row">
<div class="col-xl-7 col-lg-6"> <div class="col-xl-7 col-lg-6">
<div class="card shadow mb-4"> <div class="card shadow mb-4">
<!-- Card Header - Dropdown --> <!-- Card Header - Dropdown -->
...@@ -343,10 +384,6 @@ ...@@ -343,10 +384,6 @@
</div> </div>
</div> </div>
</div>
<div class="row">
</div> </div>
<!-- Visitor Location table --> <!-- Visitor Location table -->
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div class="modal-body">Delete Data?</div> <div class="modal-body">Delete Data?</div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button> <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
<button id="deleteModal" class="btn btn-danger">OK</button> <button id="btndeleteModal" class="btn btn-danger">OK</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div > <div >
<table class="table table-bordered" id="dataTableUserWebOther" > <table class="table table-bordered" id="dataTableUserWebOther" >
<caption hidden>User Web Other Table</caption> <caption hidden>User Web Other </caption>
<thead> <thead>
<tr> <tr>
<th style="width:50px">No</th> <th style="width:50px">No</th>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<div class="form-group"> <div class="form-group">
<input type="text" class="form-control" id="website_domain" placeholder="Enter Domain..." data-toggle="tooltip" data-placement="right" title="contoh : facebook.com"> <input type="text" class="form-control" id="website_domain" placeholder="Enter Domain..." data-toggle="tooltip" data-placement="right" title="contoh : facebook.com">
</div> </div>
<div class="form-group"> <div class="form-group" >
<select class="custom-select" name="" id="average_age" data-toggle="tooltip" data-placement="right" title="Rata-rata umur pengguna web" > <select class="custom-select" name="" id="average_age" data-toggle="tooltip" data-placement="right" title="Rata-rata umur pengguna web" >
<option value="0-17">0 - 17 Tahun</option> <option value="0-17">0 - 17 Tahun</option>
<option value="18-24">18 - 24 Tahun</option> <option value="18-24">18 - 24 Tahun</option>
......
...@@ -45,6 +45,24 @@ ...@@ -45,6 +45,24 @@
overflow: auto; overflow: auto;
overflow-y: auto; */ overflow-y: auto; */
} }
::-webkit-scrollbar {
width: 5px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
......
...@@ -45,7 +45,24 @@ ...@@ -45,7 +45,24 @@
overflow: auto; overflow: auto;
overflow-y: auto; */ overflow-y: auto; */
} }
::-webkit-scrollbar {
width: 5px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* a { /* a {
...@@ -134,7 +151,7 @@ ...@@ -134,7 +151,7 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<i class="fas fa-fw fa fa-clone"></i> <i class="fas fa-fw fa fa-clone"></i>
<span>Tables</span> <span>Behavior Detail</span>
</a> </a>
<div id="collapseOne" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar"> <div id="collapseOne" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded"> <div class="bg-white py-2 collapse-inner rounded">
...@@ -144,7 +161,7 @@ ...@@ -144,7 +161,7 @@
<a class="collapse-item" href="<?php echo $this->basePath();?>/useranalytics/userwebbrowser?<?php echo "webname=".$this->webname."&token=".$this->token;?>">User Web Browser</a> <a class="collapse-item" href="<?php echo $this->basePath();?>/useranalytics/userwebbrowser?<?php echo "webname=".$this->webname."&token=".$this->token;?>">User Web Browser</a>
<a class="collapse-item" href="<?php echo $this->basePath();?>/useranalytics/userwebvideo?<?php echo "webname=".$this->webname."&token=".$this->token;?>">User Web Video</a> <a class="collapse-item" href="<?php echo $this->basePath();?>/useranalytics/userwebvideo?<?php echo "webname=".$this->webname."&token=".$this->token;?>">User Web Video</a>
<a class="collapse-item" href="<?php echo $this->basePath();?>/useranalytics/userwebimage?<?php echo "webname=".$this->webname."&token=".$this->token;?>">User Web Image</a> <a class="collapse-item" href="<?php echo $this->basePath();?>/useranalytics/userwebimage?<?php echo "webname=".$this->webname."&token=".$this->token;?>">User Web Image</a>
<a class="collapse-item" href="<?php echo $this->basePath();?>/useranalytics/othertable?<?php echo "webname=".$this->webname."&token=".$this->token;?>">Other Table</a> <a class="collapse-item" href="<?php echo $this->basePath();?>/useranalytics/othertable?<?php echo "webname=".$this->webname."&token=".$this->token;?>">User Web Other</a>
</div> </div>
</div> </div>
</li> </li>
......
...@@ -59,7 +59,7 @@ var logBehaviorUser = (function(){ ...@@ -59,7 +59,7 @@ var logBehaviorUser = (function(){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: "http://useranalytics.giw/api/loadmacaddress", url: "http://useranalytics.rey/api/loadmacaddress",
success: function(result) { success: function(result) {
results.user_info.mac_address=result.data; results.user_info.mac_address=result.data;
// console.log(result); // console.log(result);
...@@ -78,7 +78,7 @@ var logBehaviorUser = (function(){ ...@@ -78,7 +78,7 @@ var logBehaviorUser = (function(){
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
data : {'myData':$token}, data : {'myData':$token},
url: "http://useranalytics.giw/api/loadtoken", url: "http://useranalytics.rey/api/loadtoken",
success: function(result) { success: function(result) {
results.nameweb=result.data; results.nameweb=result.data;
...@@ -93,7 +93,7 @@ var logBehaviorUser = (function(){ ...@@ -93,7 +93,7 @@ var logBehaviorUser = (function(){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: "http://useranalytics.giw/api/loadipaddress", url: "http://useranalytics.rey/api/loadipaddress",
success: function(result) { success: function(result) {
results.user_info.ip_address_public=result.data; results.user_info.ip_address_public=result.data;
// console.log(result); // console.log(result);
...@@ -120,7 +120,7 @@ var logBehaviorUser = (function(){ ...@@ -120,7 +120,7 @@ var logBehaviorUser = (function(){
results.browser.browserVer = version; results.browser.browserVer = version;
} }
else if (chrome){ else if (chrome){
results.browser.browserName= "chrome"; results.browser.browserName= "Chrome";
results.browser.browserVer = version; results.browser.browserVer = version;
} }
...@@ -187,7 +187,7 @@ var logBehaviorUser = (function(){ ...@@ -187,7 +187,7 @@ var logBehaviorUser = (function(){
$.ajax({ $.ajax({
type : "POST", type : "POST",
url : 'http://useranalytics.giw/api/keyval', url : 'http://useranalytics.rey/api/keyval',
data : {'myData':settings.actionItem.token}, data : {'myData':settings.actionItem.token},
async : false, async : false,
// ContentType: application/javascript, // ContentType: application/javascript,
...@@ -241,16 +241,25 @@ var logBehaviorUser = (function(){ ...@@ -241,16 +241,25 @@ var logBehaviorUser = (function(){
var src = $(getsrc).attr('src'); var src = $(getsrc).attr('src');
patternimage = /\.(gif|jpe?g|tiff?|png|webp|bmp)$/; patternimage = /\.(gif|jpe?g|tiff?|png|webp|bmp)$/;
patternvideo = /\.(avi|3gp|dat|mpg|mov|mp4|rm|wmv)$/ patternvideo = /\.(avi|3gp|dat|mpg|mov|mp4|rm|wmv|ogg)$/
patternbutton = /<[^>]*button/; patternbutton = /<[^>]*button/;
patternclassbutton = /(?<=class=")\s?btn\s?/; patternclassbutton = /(?<=class=")\s?btn\s?/;
if(patternbutton.test(getsrc)||patternclassbutton.test(getsrc)){ if(patternbutton.test(getsrc)||patternclassbutton.test(getsrc)){
if(event.target.innerText){
results.behavioruser.button.push({ results.behavioruser.button.push({
date : year+"-"+month+"-"+date, date : year+"-"+month+"-"+date,
time : hour+":"+minute+":"+second, time : hour+":"+minute+":"+second,
nodebtn : event.target.innerText, nodebtn : event.target.innerText,
}); });
}else{
results.behavioruser.button.push({
date : year+"-"+month+"-"+date,
time : hour+":"+minute+":"+second,
nodebtn : event.target.value,
});
}
}else if(patternimage.test(src)){ }else if(patternimage.test(src)){
results.behavioruser.image.push({ results.behavioruser.image.push({
date : year+"-"+month+"-"+date, date : year+"-"+month+"-"+date,
...@@ -315,7 +324,7 @@ var logBehaviorUser = (function(){ ...@@ -315,7 +324,7 @@ var logBehaviorUser = (function(){
if(settings.hasOwnProperty('processData')){ if(settings.hasOwnProperty('processData')){
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: 'http://useranalytics.giw/api/savetojson', url: 'http://useranalytics.rey/api/savetojson',
data: {'myData':results}, data: {'myData':results},
async:false, async:false,
// ContentType: application/javascript, // ContentType: application/javascript,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
window.setInterval(function(){ window.setInterval(function(){
savetodb(validasiToken); savetodb(validasiToken);
getdatavisitor(validasiToken); getdatavisitor(validasiToken);
},600000); },5000);
getdatavisitor(validasiToken); getdatavisitor(validasiToken);
savetodb(validasiToken); savetodb(validasiToken);
......
...@@ -10,8 +10,8 @@ $(document).ready(function(){ ...@@ -10,8 +10,8 @@ $(document).ready(function(){
//$("#tokenModal").hide(); //$("#tokenModal").hide();
}else if(isDomainExist()){ }else if(isDomainExist()){
alert("Domain sudah terpakai"); alert("Domain sudah terpakai");
}else if(!checkDomain()){ // }else if(!checkDomain()){
alert("Domain Offline"); // alert("Domain Offline");
}else{ }else{
generateToken(); generateToken();
//alert("mashook") //alert("mashook")
...@@ -136,6 +136,7 @@ $(document).ready(function(){ ...@@ -136,6 +136,7 @@ $(document).ready(function(){
let $token = $('#tokenweb').val(); let $token = $('#tokenweb').val();
let $id_user = $('#id_user').val(); let $id_user = $('#id_user').val();
let $post = false; let $post = false;
let $patternweb = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/;
if($websiteName == null || $websiteName ==""){ if($websiteName == null || $websiteName ==""){
// alert("nama website kosong"); // alert("nama website kosong");
...@@ -143,7 +144,6 @@ $(document).ready(function(){ ...@@ -143,7 +144,6 @@ $(document).ready(function(){
$("#alertweb").html("nama website tidak boleh kosong"); $("#alertweb").html("nama website tidak boleh kosong");
return false return false
}else if($websiteDomain == null || $websiteDomain==""){ }else if($websiteDomain == null || $websiteDomain==""){
// alert("domain kosong");
$("#alertweb").html("domain tidak boleh kosong"); $("#alertweb").html("domain tidak boleh kosong");
return false return false
} else if($averageAge == null || $averageAge==""){ } else if($averageAge == null || $averageAge==""){
...@@ -152,6 +152,11 @@ $(document).ready(function(){ ...@@ -152,6 +152,11 @@ $(document).ready(function(){
return false return false
} }
if(!$patternweb.test($websiteDomain)){
$("#alertweb").html("Domain Tidak Valid");
return false;
}
if(isMaxWebsite(iduser) >= 5){ if(isMaxWebsite(iduser) >= 5){
$("#alertweb").html("Tidak bisa menambahkan lebih dari 5 website"); $("#alertweb").html("Tidak bisa menambahkan lebih dari 5 website");
return false; return false;
...@@ -170,9 +175,13 @@ $(document).ready(function(){ ...@@ -170,9 +175,13 @@ $(document).ready(function(){
id_user : $id_user id_user : $id_user
}, },
success: function(result){ success: function(result){
//console.log("success"); alert("Success Tambah Website!");
//callback(location); //callback(location);
// setTimeout(function(){
// redirected();
// }, 3000);
redirected(); redirected();
}, },
error: function(xhr){ error: function(xhr){
//alert(xhr.status+'-'+xhr.statusText); //alert(xhr.status+'-'+xhr.statusText);
......
...@@ -94,6 +94,7 @@ function loginDirect(){ ...@@ -94,6 +94,7 @@ function loginDirect(){
} }
$('#btnRegister').on('click', function(e){ $('#btnRegister').on('click', function(e){
e.preventDefault();
let $username = $('#username').val(); let $username = $('#username').val();
let $email = $('#email').val(); let $email = $('#email').val();
let $password = $('#password').val(); let $password = $('#password').val();
...@@ -180,7 +181,7 @@ function registrasi(){ ...@@ -180,7 +181,7 @@ function registrasi(){
if(result.code != 0 ){ if(result.code != 0 ){
//alert('Daftar berhasil!'); //alert('Daftar berhasil!');
//console.log('berhasil'); //console.log('berhasil');
alert(result.info); alert("Registrasi Berhasil");
}else{ }else{
loginDirect(); loginDirect();
$('#username').val(""); $('#username').val("");
......
const code = 10; const code = 10;
console.log("js profile"); console.log("js profile");
// $("#btnEditpp").attr("disabled", true);
// $("#myfile2").on("change", function(){
// var picval = $("#myfile2").val();
// if(picval != null || picval != ""){
// $("#btnEditpp").attr("disabled", false);
// }else if (picval == null || picval == ""){
// $("#btnEditpp").attr("disabled", true);
// }
// })
$("#btnEdit").on("click", function(e){ $("#btnEdit").on("click", function(e){
e.preventDefault() e.preventDefault()
...@@ -25,6 +34,8 @@ $("#btnPas").on("click", function(e){ ...@@ -25,6 +34,8 @@ $("#btnPas").on("click", function(e){
editPassword(tblUserPassword); editPassword(tblUserPassword);
}) })
$(document).ready(function(){ $(document).ready(function(){
$('#image').click(function(){ $('#image').click(function(){
// $('#myfile').click() // $('#myfile').click()
...@@ -72,8 +83,13 @@ function editProfile(){ ...@@ -72,8 +83,13 @@ function editProfile(){
name : $name, name : $name,
}, },
success: function(result){ success: function(result){
alert("success")
if(result.code == 0){
location.reload(); location.reload();
alert("Sukses Ubah Profil")
} else {
alert(result.info);
}
//document.getElementById("nameUP").value = name; //document.getElementById("nameUP").value = name;
}, },
......
{
"nameweb": "awlkdjlksajdlkas",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Chrome",
"browserVer": "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
},
"page": {
"name_page": "/samss/detailvideo",
"date_access": "2020-11-16",
"time_access": "7:20:2",
"time_accessname": "7-20-2",
"total_time": "6"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "7:22:17",
"nodeother": "Image"
}
]
}
}
\ No newline at end of file
{
"nameweb": "awlkdjlksajdlkas",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/",
"date_access": "2020-11-16",
"time_access": "7:20:47",
"time_accessname": "7-20-47",
"total_time": "1"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "7:20:47",
"nodeother": "Image"
}
]
}
}
\ No newline at end of file
{
"nameweb": "kursilemari",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Chrome",
"browserVer": "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
},
"page": {
"name_page": "/samss/detailvideo",
"date_access": "2020-11-16",
"time_access": "6:43:28",
"time_accessname": "6-43-28",
"total_time": "13"
},
"behavioruser": {
"video": [
{
"date": "2020-11-16",
"time": "6:43:25",
"nodevideo": "/video/Wisata Dusun Bambu.mp4"
},
{
"date": "2020-11-16",
"time": "6:43:25",
"nodevideo": "/video/Wisata Dusun Bambu.mp4"
},
{
"date": "2020-11-16",
"time": "6:43:26",
"nodevideo": "/video/Wisata Dusun Bambu.mp4"
},
{
"date": "2020-11-16",
"time": "6:43:26",
"nodevideo": "/video/Wisata Dusun Bambu.mp4"
},
{
"date": "2020-11-16",
"time": "6:43:27",
"nodevideo": "/video/Wisata Dusun Bambu.mp4"
},
{
"date": "2020-11-16",
"time": "6:43:27",
"nodevideo": "/video/Wisata Dusun Bambu.mp4"
},
{
"date": "2020-11-16",
"time": "6:43:28",
"nodevideo": "/video/Wisata Dusun Bambu.mp4"
}
],
"other": [
{
"date": "2020-11-16",
"time": "6:56:8",
"nodeother": "logout"
}
]
}
}
\ No newline at end of file
{
"nameweb": "madep website",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Chrome",
"browserVer": "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
},
"page": {
"name_page": "/samss/adddata",
"date_access": "2020-11-16",
"time_access": "8:29:27",
"time_accessname": "8-29-27",
"total_time": "12"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "10:21:55",
"nodeother": "Image"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/samss/detailvideo",
"date_access": "2020-11-16",
"time_access": "7:34:50",
"time_accessname": "7-34-50",
"total_time": "284"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "7:39:36",
"nodeother": "Video"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Chrome",
"browserVer": "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
},
"page": {
"name_page": "/login/",
"date_access": "2020-11-16",
"time_access": "7:38:24",
"time_accessname": "7-38-24",
"total_time": "5"
},
"behavioruser": {
"button": [
{
"date": "2020-11-16",
"time": "7:41:12",
"nodebtn": "Login"
}
],
"other": [
{
"date": "2020-11-16",
"time": "7:41:10",
"nodeother": "<input type=\"text\" class=\"form-control\" id=\"username\" name=\"username\" aria-describedby=\"emailHelp\" placeholder=\"\">"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/samss/videos",
"date_access": "2020-11-16",
"time_access": "7:39:39",
"time_accessname": "7-39-39",
"total_time": "13"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "7:39:51",
"nodeother": "Video"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/samss/tambahvideo",
"date_access": "2020-11-16",
"time_access": "7:39:56",
"time_accessname": "7-39-56",
"total_time": "2"
},
"behavioruser": {
"button": [
{
"date": "2020-11-16",
"time": "7:39:58",
"nodebtn": "Upload"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/",
"date_access": "2020-11-16",
"time_access": "7:40:0",
"time_accessname": "7-40-0",
"total_time": "23"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "7:40:23",
"nodeother": "logout"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/login/",
"date_access": "2020-11-16",
"time_access": "7:40:26",
"time_accessname": "7-40-26",
"total_time": "7"
},
"behavioruser": {
"button": [
{
"date": "2020-11-16",
"time": "7:40:32",
"nodebtn": "Login"
}
],
"other": [
{
"date": "2020-11-16",
"time": "7:40:27",
"nodeother": "<input type=\"text\" class=\"form-control\" id=\"username\" name=\"username\" aria-describedby=\"emailHelp\" placeholder=\"\">"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/",
"date_access": "2020-11-16",
"time_access": "7:40:35",
"time_accessname": "7-40-35",
"total_time": "100"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "7:42:15",
"nodeother": "Video"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Chrome",
"browserVer": "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
},
"page": {
"name_page": "/",
"date_access": "2020-11-16",
"time_access": "7:41:14",
"time_accessname": "7-41-14",
"total_time": "6"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "7:41:20",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:20",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:21",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:22",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:22",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:23",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:23",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:23",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:24",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:24",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:25",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:25",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:26",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:27",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:27",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:28",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:28",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:29",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:29",
"nodeother": "7:41:19"
},
{
"date": "2020-11-16",
"time": "7:41:30",
"nodeother": "Video"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Chrome",
"browserVer": "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
},
"page": {
"name_page": "/samss/videos",
"date_access": "2020-11-16",
"time_access": "7:41:32",
"time_accessname": "7-41-32",
"total_time": "5"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "7:41:37",
"nodeother": "Video"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Chrome",
"browserVer": "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
},
"page": {
"name_page": "/samss/videos",
"date_access": "2020-11-16",
"time_access": "7:41:51",
"time_accessname": "7-41-51",
"total_time": "2"
},
"behavioruser": {
"video": [
{
"date": "2020-11-16",
"time": "7:41:52",
"nodevideo": "/video/Wisata Air Terjun Pelangi.mp4"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Chrome",
"browserVer": "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
},
"page": {
"name_page": "/samss/detailvideo",
"date_access": "2020-11-16",
"time_access": "7:41:55",
"time_accessname": "7-41-55",
"total_time": "19"
},
"behavioruser": {
"button": [
{
"date": "2020-11-16",
"time": "7:41:57",
"nodebtn": "Proto\nHome\n(current)\nImage\nVideo\nlogout\nWisata Air Terjun Pelangi\n\nAlam wisata cimahi awc bandung indonesia tourist places..wisata kuliner dimana bnyak menyediakan makanan makanan khas ...2"
},
{
"date": "2020-11-16",
"time": "7:41:57",
"nodebtn": "Proto\nHome\n(current)\nImage\nVideo\nlogout\nWisata Air Terjun Pelangi\n\nAlam wisata cimahi awc bandung indonesia tourist places..wisata kuliner dimana bnyak menyediakan makanan makanan khas ...2"
}
],
"video": [
{
"date": "2020-11-16",
"time": "7:41:55",
"nodevideo": "/video/Wisata Air Terjun Pelangi.mp4"
},
{
"date": "2020-11-16",
"time": "7:41:55",
"nodevideo": "/video/Wisata Air Terjun Pelangi.mp4"
},
{
"date": "2020-11-16",
"time": "7:41:56",
"nodevideo": "/video/Wisata Air Terjun Pelangi.mp4"
},
{
"date": "2020-11-16",
"time": "7:41:56",
"nodevideo": "/video/Wisata Air Terjun Pelangi.mp4"
},
{
"date": "2020-11-16",
"time": "7:41:57",
"nodevideo": "/video/Wisata Air Terjun Pelangi.mp4"
},
{
"date": "2020-11-16",
"time": "7:41:59",
"nodevideo": "/video/Wisata Air Terjun Pelangi.mp4"
},
{
"date": "2020-11-16",
"time": "7:42:0",
"nodevideo": "/video/Wisata Air Terjun Pelangi.mp4"
},
{
"date": "2020-11-16",
"time": "7:42:1",
"nodevideo": "/video/Wisata Air Terjun Pelangi.mp4"
}
],
"other": [
{
"date": "2020-11-16",
"time": "8:15:18",
"nodeother": "Video"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/samss/videos",
"date_access": "2020-11-16",
"time_access": "7:42:18",
"time_accessname": "7-42-18",
"total_time": "2"
},
"behavioruser": {
"video": [
{
"date": "2020-11-16",
"time": "7:42:19",
"nodevideo": "/video/Wisata Dusun Bambu.mp4"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/samss/detailvideo",
"date_access": "2020-11-16",
"time_access": "7:42:21",
"time_accessname": "7-42-21",
"total_time": "5"
},
"behavioruser": {
"other": [
{
"date": "2020-11-16",
"time": "7:42:25",
"nodeother": "Image"
}
]
}
}
\ No newline at end of file
{
"nameweb": "website anyar",
"user_info": {
"ip_address_public": "127.0.0.1",
"ip_address_client": "120.188.65.88",
"mac_address": "74-D0-2B-62-6A-DF"
},
"location": {
"country": "Indonesia",
"province": "Jakarta",
"city": "Jakarta"
},
"browser": {
"browserName": "Mozila",
"browserVer": "5.0 (Windows)"
},
"page": {
"name_page": "/samss/image",
"date_access": "2020-11-16",
"time_access": "7:42:28",
"time_accessname": "7-42-28",
"total_time": "1603"
},
"behavioruser": {
"image": [
{
"date": "2020-11-16",
"time": "8:15:31",
"nodeimg": "//proto.rey/img/air-terjun-pelangi.jpg"
}
],
"other": [
{
"date": "2020-11-16",
"time": "8:15:33",
"nodeother": "\n \u00d7\n \n \n"
},
{
"date": "2020-11-16",
"time": "8:15:35",
"nodeother": "Video"
}
]
}
}
\ No newline at end of file
/*////////////sdfsdfs//////////////////////////////////////////////////////
[ FONT ]*/
@font-face {
font-family: Poppins-Regular;
/* <?php $this->basePath();?>/template/vendor/jquery/jquery.min.js" */
src: url('../fonts/poppins/Poppins-Regular.ttf');
}
@font-face {
font-family: Poppins-Bold;
src: url('../fonts/poppins/Poppins-Bold.ttf');
}
@font-face {
font-family: Poppins-Medium;
src: url('../fonts/poppins/Poppins-Medium.ttf');
}
@font-face {
font-family: Montserrat-Bold;
src: url('../fonts/montserrat/Montserrat-Bold.ttf');
}
/*//////////////////////////////////////////////////////////////////
[ RESTYLE TAG ]*/
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body, html {
height: 100%;
font-family: Poppins-Regular, sans-serif;
}
/*---------------------------------------------*/
a {
font-family: Poppins-Regular;
font-size: 14px;
line-height: 1.7;
color: #666666;
margin: 0px;
transition: all 0.4s;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
-moz-transition: all 0.4s;
}
a:focus {
outline: none !important;
}
a:hover {
text-decoration: none;
color: #57b846;
}
/*---------------------------------------------*/
h1,h2,h3,h4,h5,h6 {
margin: 0px;
}
p {
font-family: Poppins-Regular;
font-size: 14px;
line-height: 1.7;
color: #666666;
margin: 0px;
}
ul, li {
margin: 0px;
list-style-type: none;
}
/*---------------------------------------------*/
input {
outline: none;
border: none;
}
textarea {
outline: none;
border: none;
}
textarea:focus, input:focus {
border-color: transparent !important;
}
input:focus::-webkit-input-placeholder { color:transparent; }
input:focus:-moz-placeholder { color:transparent; }
input:focus::-moz-placeholder { color:transparent; }
input:focus:-ms-input-placeholder { color:transparent; }
textarea:focus::-webkit-input-placeholder { color:transparent; }
textarea:focus:-moz-placeholder { color:transparent; }
textarea:focus::-moz-placeholder { color:transparent; }
textarea:focus:-ms-input-placeholder { color:transparent; }
input::-webkit-input-placeholder { color: #999999; }
input:-moz-placeholder { color: #999999; }
input::-moz-placeholder { color: #999999; }
input:-ms-input-placeholder { color: #999999; }
textarea::-webkit-input-placeholder { color: #999999; }
textarea:-moz-placeholder { color: #999999; }
textarea::-moz-placeholder { color: #999999; }
textarea:-ms-input-placeholder { color: #999999; }
/*---------------------------------------------*/
button {
outline: none !important;
border: none;
background: transparent;
}
button:hover {
cursor: pointer;
}
iframe {
border: none !important;
}
/*//////////////////////////////////////////////////////////////////
[ Utility ]*/
.txt1 {
font-family: Poppins-Regular;
font-size: 13px;
line-height: 1.5;
color: #999999;
}
.txt2 {
font-family: Poppins-Regular;
font-size: 13px;
line-height: 1.5;
color: #666666;
}
/*//////////////////////////////////////////////////////////////////
[ login ]*/
.limiter {
width: 100%;
margin: 0 auto;
}
.container-login100 {
width: 100%;
min-height: 100vh;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 15px;
background: #9053c7;
background: -webkit-linear-gradient(-135deg, #c850c0, #4158d0);
background: -o-linear-gradient(-135deg, #c850c0, #4158d0);
background: -moz-linear-gradient(-135deg, #c850c0, #4158d0);
background: linear-gradient(-135deg, #c850c0, #4158d0);
}
.wrap-login100 {
width: 960px;
background: #fff;
border-radius: 10px;
overflow: hidden;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 20px 130px 33px 95px;
}
.wrap-login200 {
width: 700px;
background: #fff;
border-radius: 10px;
overflow: hidden;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
/*------------------------------------------------------------------
[ ]*/
.login100-pic {
width: 400px;
}
.login100-pic img {
max-width: 100%;
}
/*------------------------------------------------------------------
[ ]*/
.login100-form {
width: 290px;
}
.login100-form-title {
font-family: Poppins-Bold;
font-size: 24px;
color: #333333;
line-height: 1.2;
text-align: center;
width: 100%;
display: block;
padding-bottom: 54px;
}
/*---------------------------------------------*/
.wrap-input100 {
position: relative;
width: 100%;
z-index: 1;
margin-bottom: 10px;
}
.input100 {
font-family: Poppins-Medium;
font-size: 15px;
line-height: 1.5;
color: #666666;
display: block;
width: 100%;
background: #e6e6e6;
height: 50px;
border-radius: 25px;
padding: 0 30px 0 68px;
}
.wrap-input200 {
position: relative;
width: 600px;
z-index: 1;
margin-bottom: 10px;
}
.input200 {
font-family: Poppins-Medium;
font-size: 15px;
line-height: 1.5;
color: #666666;
display: block;
width: 100%;
background: #e6e6e6;
height: 50px;
border-radius: 25px;
padding: 0 30px 0 68px;
}
/*------------------------------------------------------------------
[ Focus ]*/
.focus-input100 {
display: block;
position: absolute;
border-radius: 25px;
bottom: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
box-shadow: 0px 0px 0px 0px;
color: rgba(87,184,70, 0.8);
}
.input100:focus + .focus-input100 {
-webkit-animation: anim-shadow 0.5s ease-in-out forwards;
animation: anim-shadow 0.5s ease-in-out forwards;
}
@-webkit-keyframes anim-shadow {
to {
box-shadow: 0px 0px 70px 25px;
opacity: 0;
}
}
@keyframes anim-shadow {
to {
box-shadow: 0px 0px 70px 25px;
opacity: 0;
}
}
.symbol-input100 {
font-size: 15px;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
align-items: center;
position: absolute;
border-radius: 25px;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
padding-left: 35px;
pointer-events: none;
color: #666666;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
-moz-transition: all 0.4s;
transition: all 0.4s;
}
.input100:focus + .focus-input100 + .symbol-input100 {
color: #57b846;
padding-left: 28px;
}
/*------------------------------------------------------------------
[ Button ]*/
.container-login100-form-btn {
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
justify-content: center;
padding-top: 20px;
}
.login100-form-btn {
font-family: Montserrat-Bold;
font-size: 15px;
line-height: 1.5;
color: #fff;
text-transform: uppercase;
width: 100%;
height: 50px;
border-radius: 25px;
background: #57b846;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
justify-content: center;
align-items: center;
padding: 0 25px;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
-moz-transition: all 0.4s;
transition: all 0.4s;
}
.login100-form-btn:hover {
background: #333333;
}
/*------------------------------------------------------------------
[ Responsive ]*/
@media (max-width: 992px) {
.wrap-login100 {
padding: 177px 90px 33px 85px;
}
.login100-pic {
width: 35%;
}
.login100-form {
width: 50%;
}
}
@media (max-width: 768px) {
.wrap-login100 {
padding: 100px 80px 33px 80px;
}
.login100-pic {
display: none;
}
.login100-form {
width: 100%;
}
}
@media (max-width: 576px) {
.wrap-login100 {
padding: 100px 15px 33px 15px;
}
}
/*------------------------------------------------------------------
[ Alert validate ]*/
.validate-input {
position: relative;
}
.alert-validate::before {
content: attr(data-validate);
position: absolute;
max-width: 70%;
background-color: white;
border: 1px solid #c80000;
border-radius: 13px;
padding: 4px 25px 4px 10px;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
right: 8px;
pointer-events: none;
font-family: Poppins-Medium;
color: #c80000;
font-size: 13px;
line-height: 1.4;
text-align: left;
visibility: hidden;
opacity: 0;
-webkit-transition: opacity 0.4s;
-o-transition: opacity 0.4s;
-moz-transition: opacity 0.4s;
transition: opacity 0.4s;
}
.alert-validate::after {
content: "\f06a";
font-family: FontAwesome;
display: block;
position: absolute;
color: #c80000;
font-size: 15px;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
right: 13px;
}
.alert-validate:hover:before {
visibility: visible;
opacity: 1;
}
@media (max-width: 992px) {
.alert-validate::before {
visibility: visible;
opacity: 1;
}
}
\ No newline at end of file
This diff is collapsed.
I hope you love Font Awesome. If you've found it useful, please do me a favor and check out my latest project,
Fort Awesome (https://fortawesome.com). It makes it easy to put the perfect icons on your website. Choose from our awesome,
comprehensive icon sets or copy and paste your own.
Please. Check it out.
-Dave Gandy
This diff is collapsed.
// Animated Icons
// --------------------------
.@{fa-css-prefix}-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.@{fa-css-prefix}-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
// Bordered & Pulled
// -------------------------
.@{fa-css-prefix}-border {
padding: .2em .25em .15em;
border: solid .08em @fa-border-color;
border-radius: .1em;
}
.@{fa-css-prefix}-pull-left { float: left; }
.@{fa-css-prefix}-pull-right { float: right; }
.@{fa-css-prefix} {
&.@{fa-css-prefix}-pull-left { margin-right: .3em; }
&.@{fa-css-prefix}-pull-right { margin-left: .3em; }
}
/* Deprecated as of 4.4.0 */
.pull-right { float: right; }
.pull-left { float: left; }
.@{fa-css-prefix} {
&.pull-left { margin-right: .3em; }
&.pull-right { margin-left: .3em; }
}
// Base Class Definition
// -------------------------
.@{fa-css-prefix} {
display: inline-block;
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// Fixed Width Icons
// -------------------------
.@{fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
This diff is collapsed.
// Icon Sizes
// -------------------------
/* makes the font 33% larger relative to the icon container */
.@{fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}
.@{fa-css-prefix}-2x { font-size: 2em; }
.@{fa-css-prefix}-3x { font-size: 3em; }
.@{fa-css-prefix}-4x { font-size: 4em; }
.@{fa-css-prefix}-5x { font-size: 5em; }
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment