console
loadJScript();
function init(){
$(".dragDevice").Tdrag({
scope:".boxLists"
});
}
function loadJScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://www.hana.co/wp-content/uploads/2017/05/Tdrag.js";
document.body.appendChild(script);
}
<div id="outBackground" style="position: relative;">
<div id="relateDevices" class="boxLists" style="">
<div class="dragDevice"></div>
</div>
</div>
#outBackground{
width:900px;
height:540px;
}
.boxLists{
width:900px;
height:540px;
}
.dragDevice{
background: red;
width:30px;
height:30px;
}