remove robot ID rooltip

This commit is contained in:
Silver Kuusik 2018-08-29 11:06:06 +02:00
parent 3c50c8487a
commit 6bef582405
3 changed files with 2 additions and 16 deletions

View File

@ -10,12 +10,6 @@ var codingEnabled = false;
var liveStreamVisible = false; var liveStreamVisible = false;
window.addEventListener('load', function() { window.addEventListener('load', function() {
// Activate tooltips
$('[data-toggle="tooltip"]').tooltip({
animated: 'fade',
placement: 'bottom',
html: true
});
// Set the robot ID from the localstorage // Set the robot ID from the localstorage
$('#robot-id').val(getLocalStorageItem('sumorobot.robotId')); $('#robot-id').val(getLocalStorageItem('sumorobot.robotId'));
@ -227,7 +221,5 @@ window.addEventListener('load', function() {
sumorobot = new Sumorobot(`ws://${ROBOT_SERVER}`, robotId); sumorobot = new Sumorobot(`ws://${ROBOT_SERVER}`, robotId);
// Hide the configuration panel // Hide the configuration panel
$('#panel').hide(); $('#panel').hide();
// Hide the tooltip, necessary on mobile devices
$('[data-toggle="tooltip"]').tooltip('hide');
}); });
}); });

File diff suppressed because one or more lines are too long

View File

@ -12,9 +12,8 @@
<!-- cookie notification --> <!-- cookie notification -->
<script src="assets/js/min/cookieconsent.min.js" type="text/javascript" charset="utf-8"></script> <script src="assets/js/min/cookieconsent.min.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/cookie.js" type="text/javascript" charset="utf-8"></script> <script src="assets/js/cookie.js" type="text/javascript" charset="utf-8"></script>
<!-- jquery, popper, bootstrap --> <!-- jquery, bootstrap -->
<script src="assets/js/min/jquery.min.js" type="text/javascript" charset="utf-8"></script> <script src="assets/js/min/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/min/popper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/min/bootstrap.min.js" type="text/javascript" charset="utf-8"></script> <script src="assets/js/min/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<!-- ace editor --> <!-- ace editor -->
<script src="assets/js/ace/ace.js" type="text/javascript" charset="utf-8"></script> <script src="assets/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
@ -39,7 +38,7 @@
<div class="input-group-prepend"> <div class="input-group-prepend">
<span class="input-group-text" id="robot-label">Robot ID</span> <span class="input-group-text" id="robot-label">Robot ID</span>
</div> </div>
<input type="text" class="form-control" id="robot-id" placeholder="xxxxxx" data-toggle="tooltip" title="<img width='100%' src='assets/img/robot_id.jpg' />" /> <input type="text" class="form-control" id="robot-id" placeholder="xxxxxx" />
</div> </div>
<div class="btn-group btn-group-robot" role="group" aria-label="robots"> <div class="btn-group btn-group-robot" role="group" aria-label="robots">
<a href="#" class="btn btn-lg btn-robot-go">GO!</a> <a href="#" class="btn btn-lg btn-robot-go">GO!</a>