109 lines
3.6 KiB
PHP
109 lines
3.6 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
@include('layouts.shared/title-meta', ['title' => "Form"])
|
|
@include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? ''])
|
|
<link href="{{asset('assets/libs/sweetalert2/sweetalert2.min.css')}}" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<div id="pageloader">
|
|
<img src="http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/0.16.1/images/loader-large.gif" alt="processing..." />
|
|
</div>
|
|
<body class="loading">
|
|
<div class="account-pages">
|
|
<div class="container">
|
|
<div class="card mt-3">
|
|
<div class="card-body">
|
|
<div class="row g-0">
|
|
<div class="col-4">
|
|
<img src="https://did94hhhcgq1d.cloudfront.net/template/PULMONARYREHABILITATIONPROGRAM.jpeg" alt="..." class="img-fluid">
|
|
</div>
|
|
<div class="col-8">
|
|
<h5 class="card-title">Pulmo Rehab link</h5>
|
|
<a class="btn btn-primary open-link" target="_system" href="https://docs.google.com/forms/d/e/1FAIpQLSd3TE51dEBtAEMOtJ342bc-bgS9DbkD6X1TFeMZ8FN1Oq2OGg/viewform?vc=0&c=0&w=1&flr=0">Open Link</a>
|
|
<button class="btn btn-primary copy-link" link="https://docs.google.com/forms/d/e/1FAIpQLSd3TE51dEBtAEMOtJ342bc-bgS9DbkD6X1TFeMZ8FN1Oq2OGg/viewform?vc=0&c=0&w=1&flr=0">Copy Link</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end container -->
|
|
</div>
|
|
<!-- end page -->
|
|
<style type="text/css">
|
|
#pageloader {
|
|
background: rgba( 255, 255, 255, 0.8 );
|
|
display: none;
|
|
height: 100%;
|
|
position: fixed;
|
|
width: 100%;
|
|
z-index: 9999;
|
|
}
|
|
|
|
#pageloader img {
|
|
left: 50%;
|
|
margin-left: -32px;
|
|
margin-top: -32px;
|
|
position: absolute;
|
|
top: 50%;
|
|
}
|
|
</style>
|
|
@include('layouts.shared/footer-script')
|
|
<script src="{{asset('assets/libs/sweetalert2/sweetalert2.min.js')}}"></script>
|
|
<script type="text/javascript">
|
|
jQuery(document).ready(function($){
|
|
$('.copy-link').click(function(){
|
|
try {
|
|
//var successful = document.execCommand('copy');
|
|
copyToClipboard($(this).attr('link') );
|
|
$.NotificationApp.send("success!", "Copied the link to your Clipboard", 'top-center', '#5ba035', 'success');
|
|
} catch (err) {
|
|
$.NotificationApp.send("Oops, unable to copy!", "Please copy the link manually.", 'top-center', '#bf441d', 'error');
|
|
//console.log('Oops, unable to copy');
|
|
}
|
|
});
|
|
});
|
|
function copyToClipboard(textToCopy) {
|
|
var textArea;
|
|
|
|
function isOS() {
|
|
//can use a better detection logic here
|
|
return navigator.userAgent.match(/ipad|iphone/i);
|
|
}
|
|
|
|
function createTextArea(text) {
|
|
textArea = document.createElement('textArea');
|
|
textArea.readOnly = true;
|
|
textArea.contentEditable = true;
|
|
textArea.value = text;
|
|
document.body.appendChild(textArea);
|
|
}
|
|
|
|
function selectText() {
|
|
var range, selection;
|
|
|
|
if (isOS()) {
|
|
range = document.createRange();
|
|
range.selectNodeContents(textArea);
|
|
selection = window.getSelection();
|
|
selection.removeAllRanges();
|
|
selection.addRange(range);
|
|
textArea.setSelectionRange(0, 999999);
|
|
} else {
|
|
textArea.select();
|
|
}
|
|
}
|
|
|
|
function copyTo() {
|
|
document.execCommand('copy');
|
|
document.body.removeChild(textArea);
|
|
}
|
|
|
|
createTextArea(textToCopy);
|
|
selectText();
|
|
copyTo();
|
|
}
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html> |