Widget:LoadRemoteContent: Difference between revisions
Jump to navigation
Jump to search
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 1: | Line 1: | ||
<div id="<!--{$id}-->" | <div id="<!--{$id}-->"> | ||
<script | <script | ||
src="https://code.jquery.com/jquery-3.6.0.slim.min.js" | src="https://code.jquery.com/jquery-3.6.0.slim.min.js" | ||
Line 16: | Line 16: | ||
} | } | ||
load("<!--{$src}-->", document.getElementById("<!--{$hash}-->")); | |||
</script> | </script> | ||
</div> |
Revision as of 13:00, 17 May 2021
<script
src="https://code.jquery.com/jquery-3.6.0.slim.min.js" integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI=" crossorigin="anonymous"></script>
<script type="text/javascript" crossorigin="anonymous">
function load(url, element){
req = new XMLHttpRequest(); req.open("GET", url, false); req.send(null);
element.innerHTML = req.responseText;
}
load("", document.getElementById(""));
</script>