Check out my codepen project here: https://codepen.io/ldrumsl/pen/ZxdZwa
Below is the JavaScript code:
$('#datetimepicker1').datetimepicker();
$('#datetimepicker2').datetimepicker();
Downloaded index.html file content:
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>A Pen by L</title>
<script src="https://code.jquery.com/jquery-2.1.0.min.js"
integrity="sha256-8oQ1OnzE2X9v4gpRVRMb1DWHoPHJilbur1LP9ykQ9H0="
crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet"
href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet"
href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-
theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script
src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"> .
</script>
<link rel='stylesheet prefetch'
href='https://cdn.rawgit.com/Eonasdan/bootstrapdatetimepicker/
a549aa8780dbda16f6cff545aeabc3d71073911e/build/css/bootstrap-
datetimepicker.css'>
</head>
<body>
<div class="container" style="margin-top: 20vh">
<div class="row">
<div class="col-12 text-center" style="height:4em"></div>
<div class="col-12 text-center" style="font-size: 4em;">
REQUEST EDIT
</div>
<div class="col-12 text-center" style="height:4em"></div>
</div>
<div class="form-group row">
<label for="colFormLabelLg" class="col-sm-2 col-form-label col- form-label-lg">Start Date & Time</label>
<div class="col-sm-10">
<div class="form-group">
<div class="input-group date" id="datetimepicker2">
<input type="text" class="form-control" /> <span class="input-group-addon"><span class="glyphicon-calendar glyphicon"></span></span>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label for="colFormLabelLg" class="col-sm-2 col-form-label col-form-label-lg">End Date & Time</label>
<div class="col-sm-10">
<div class="form-group">
<div class="input-group date" id="datetimepicker1">
<input type="text" class="form-control" /> <span class="input-group-addon"><span class="glyphicon-calendar glyphicon"></span></span>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label for="colFormLabelLg" class="col-sm-2 col-form-label col-form-label-lg">Notes / Reason</label>
<div class="col-sm-10">
<div class="form-group">
<div>
<input type="text" class="form-control" />
</div>
</div>
</div>
</div>
</div>
<div class="row" style="height: 3rem;"></div>
<div class="row" style="height: 3rem;">
<button type="button" class="btn btn-secondary btn-lg btn-block" style="width: 50%; margin-left: 25%;background-color: grey;">LOGIN</button>
</div>
</body>
</html>
The link above functions as expected online. However, there seems to be an issue when opened locally, resulting in a different display. Here's an image of the local code. Does anyone have insights on troubleshooting this problem? I exported the file directly from codepen without any modifications.