Commit 73134f55 by jenkins

Merge Request accepted by jenkins build success

parents 87c892d8 17c9b9df
Pipeline #516 failed with stage
in 0 seconds
...@@ -1113,6 +1113,9 @@ p:empty { display:none; } ...@@ -1113,6 +1113,9 @@ p:empty { display:none; }
.bootstrap-iso .e-learning-heading h2 { .bootstrap-iso .e-learning-heading h2 {
padding-top: 55px; padding-top: 55px;
} }
.bootstrap-iso .learning-home-button{
padding: 5px 16px;
}
} }
@media (max-width: 480px){ @media (max-width: 480px){
...@@ -1168,7 +1171,8 @@ p:empty { display:none; } ...@@ -1168,7 +1171,8 @@ p:empty { display:none; }
padding: 5%; padding: 5%;
} }
.bootstrap-iso .learning-home-button{ .bootstrap-iso .learning-home-button{
font-size: 6px!important; padding: 5px 7px;
letter-spacing: 0px;
} }
} }
...@@ -1226,7 +1230,8 @@ p:empty { display:none; } ...@@ -1226,7 +1230,8 @@ p:empty { display:none; }
padding: 3%; padding: 3%;
} }
.bootstrap-iso .learning-home-button{ .bootstrap-iso .learning-home-button{
font-size: 6px!important; padding: 5px 3px;
letter-spacing: 0px;
} }
} }
...@@ -1283,7 +1288,8 @@ p:empty { display:none; } ...@@ -1283,7 +1288,8 @@ p:empty { display:none; }
padding: 3%; padding: 3%;
} }
.bootstrap-iso .learning-home-button{ .bootstrap-iso .learning-home-button{
font-size: 4px!important; padding: 2px 2px;
letter-spacing: 0px;
} }
} }
\ No newline at end of file
...@@ -396,12 +396,6 @@ $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1; ...@@ -396,12 +396,6 @@ $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1;
<option value="ZW" >Zimbabwe</option> <option value="ZW" >Zimbabwe</option>
</select> </select>
</div> </div>
<?php
$ip = file_get_contents('https://api.ipify.org');
//echo "My public IP address is: " . $ip;
?>
<script type="text/javascript"> <script type="text/javascript">
...@@ -409,14 +403,17 @@ $ip = file_get_contents('https://api.ipify.org'); ...@@ -409,14 +403,17 @@ $ip = file_get_contents('https://api.ipify.org');
var ips ='00'; var ips ='00';
ips = '<?php echo ($ip); ?>'; $.getJSON('https://json.geoiplookup.io/api?callback=?', function(data) {
//console.log(data.ip);
console.log(ips); ips = data.ip;
$.getJSON("https://cors-anywhere.herokuapp.com/http://www.geoplugin.net/json.gp?ip="+ips,function(response){ $.getJSON("https://cors-anywhere.herokuapp.com/http://www.geoplugin.net/json.gp?ip="+ips,function(response){
$('#country_code').val(response.geoplugin_countryCode); $('#country_code').val(response.geoplugin_countryCode);
}); });
});
}); });
</script> </script>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="text-center linkpad"> <div class="text-center linkpad">
<a href="<?php echo get_page_link(get_page_by_path('lms')); ?>" class="learning-home-button">Back to e-learning home</a> <a href="<?php echo get_page_link(get_page_by_path('lms')); ?>" ><button class="learning-home-button">Back to e-learning home</button></a>
</div> </div>
</div> </div>
......
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