Current File : /home/natitnen/apply.crestassured.com/index.html |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title></title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://unpkg.com/vue@2.6.0/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<style>
body {
background-color: white;
}
.gotosite {
margin:0 auto;
padding: 20px;
border-radius: 5px;
color: white;
background-color: #fc7837;
border: 1px solid #fc7837;
font-size: 13px;
font-weight: 500;
text-decoration: none;
text-align: center;
}
.gotosite:hover {
color: white;
text-decoration: none;
}
.cool-container {
min-width: 100vw;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body >
<div id="app" v-bind:class="[contentClass]">
<div class="cool-container">
<!--<a class="gotosite" href="#" >GO TO WEBSITE</a>-->
</div>
</div>
<a href="#" id="creditclan-widget" style="display:none">Apply on CreditClan</a>
<script type="text/javascript">
const API_KEY = "cvfnkVRp5WoFs2BxUhH75NBSnd66AeYPjuC8l9MtAyIJZrXpW4Q0KeoRIyXgvGDu";
const API_URL = "https://emailmodule.creditclan.com/index.php/websitesetting/getWebsiteInformation";
var app = new Vue({
el: "#app",
data() {
return {
data: {},
contentClass: '',
}
},
created() {
this.getSettings();
},
methods: {
getSettings(){
axios.post(API_URL, {'company_id': API_KEY})
.then((res) => {
if (res.data.LEGAL_NAME) {
this.data = res.data;
this.data['website_bg_position'] = "68% 5%";
}else{
this.showError();
}
})
.catch(function(err) {
console.log(err);
this.showError();
});
},
showError(){
this.contentClass = "contentError";
}
}
});
</script>
<script type="text/javascript" src="https://appfive.creditclan.com/boot/client.js"></script>
<script>var cc = CreditClan.init(API_KEY, {class: 'lend-button-no-style'}); cc.open();</script>
</body>
</html>