Compare commits

..

No commits in common. "6bb1efc432852e16cf53c59799826d49c5a27d4e" and "4e8216e6da64b34b6cb14e17eccd1c03a944d143" have entirely different histories.

11 changed files with 12 additions and 180 deletions

8
.idea/.gitignore vendored
View File

@ -1,8 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11" project-jdk-type="Python SDK" />
</project>

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/sightplace-rep.iml" filepath="$PROJECT_DIR$/.idea/sightplace-rep.iml" />
</modules>
</component>
</project>

View File

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TemplatesService">
<option name="TEMPLATE_FOLDERS">
<list>
<option value="$MODULE_DIR$/place/templates" />
</list>
</option>
</component>
</module>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -5,7 +5,7 @@ block_cipher = None
a = Analysis(['main.py'],
pathex=['S:\\SIGHTPLACE\\DEV\\sightplace-rep'],
pathex=['S:\\SIGHTPLACE\\DEV'],
binaries=[],
datas=[],
hiddenimports=[],

View File

@ -4,57 +4,13 @@ if(navigator.userAgent.indexOf("QtWebEngine") > 0) {
window.sight = channel.objects.handler;
});
}
/*
function docReady(fn) {
if(document.readyState === "complete" || document.readyState === "interactive") {
setTimeout(fn, 1);
} else {
setTimeout(fn, 2);
document.addEventListener("DOMContentLoaded", fn);
}
}
document.querySelectorAll('a').forEach(link => {
link.onclick = function() { alert("ss"); }
link.addEventListener("click", (e) => {
e.preventDefault();
alert("sds");
});
});
document.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('#screate').forEach(link => {
alert("1");
link.addEventListener("click", (e) => {
alert("sds");
});
});
const screate = document.getElementById("screate");
screate.addEventListener("click",myFunc);
document.getElementById("screate").onclick = e => {
alert("ss")
}
});*/
/*
document.getElementById("screate").onclick = e => {
alert("ss")
}*/
/*const screate = document;*/
(function ( $ ) {
$.fn.s_create = function() {
$(document).on( "click", "#screate", function() {
event.preventDefault();
window.sight.create($(this).data("id"), $(this).data("type"), function(sight_id) {
/*alert(sight_id)*/
});
})
};
@ -175,29 +131,13 @@ function sclose() {
function setTitle(title) {
$("#stitle").text(title);
}
$(document).ready(function(){
// LOAD the contents into the Sight
if (typeof s_contents !== 'undefined') {
for ( const [id_name,content_folder] of Object.entries( s_contents ) ) {
$("#"+id_name).load("content/"+content_folder+"/content.html");
/*$("#"+id_name).load("content/"+content_folder+"/content.html", function() {
document.querySelectorAll('#screate').forEach(link => {
link.addEventListener("click", (e) => {
e.preventDefault();
window.sight.create(e.target.dataset.id, e.target.dataset.type, function(sight_id) {
});
});
});
});*/
}
}
// INIT the Sight from init_sight variable
if (typeof init_sight !== 'undefined') {

View File

@ -4,60 +4,17 @@ if(navigator.userAgent.indexOf("QtWebEngine") > 0) {
window.sight = channel.objects.handler;
});
}
/*
function docReady(fn) {
if(document.readyState === "complete" || document.readyState === "interactive") {
setTimeout(fn, 1);
} else {
setTimeout(fn, 2);
document.addEventListener("DOMContentLoaded", fn);
}
}
document.querySelectorAll('a').forEach(link => {
link.onclick = function() { alert("ss"); }
link.addEventListener("click", (e) => {
e.preventDefault();
alert("sds");
});
});
document.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('#screate').forEach(link => {
alert("1");
link.addEventListener("click", (e) => {
alert("sds");
});
});
const screate = document.getElementById("screate");
screate.addEventListener("click",myFunc);
document.getElementById("screate").onclick = e => {
alert("ss")
}
});*/
/*
document.getElementById("screate").onclick = e => {
alert("ss")
}*/
/*const screate = document;*/
(function ( $ ) {
/* $.fn.s_create = function() {
$.fn.s_create = function() {
$(document).on( "click", "#screate", function() {
event.preventDefault();
window.sight.create($(this).data("id"), $(this).data("type"), function(sight_id) {
var data_id = ""
window.sight.create(data_id, $(this).data("type"), function(sight_id) {
/*alert(sight_id)*/
});
})
};*/
};
$.fn.s_close = function() {
$("body").on( "click", "#sclose", function() {
event.preventDefault();
@ -175,29 +132,13 @@ function sclose() {
function setTitle(title) {
$("#stitle").text(title);
}
$(document).ready(function(){
// LOAD the contents into the Sight
if (typeof s_contents !== 'undefined') {
for ( const [id_name,content_folder] of Object.entries( s_contents ) ) {
/*$("#"+id_name).load("content/"+content_folder+"/content.html");*/
$("#"+id_name).load("content/"+content_folder+"/content.html", function() {
document.querySelectorAll('#screate').forEach(link => {
link.addEventListener("click", (e) => {
e.preventDefault();
window.sight.create(e.target.dataset.id, e.target.dataset.type, function(sight_id) {
});
});
});
});
$("#"+id_name).load("content/"+content_folder+"/content.html");
}
}
// INIT the Sight from init_sight variable
if (typeof init_sight !== 'undefined') {
@ -254,7 +195,7 @@ $(document).ready(function(){
});*/
// INIT END
/*$( "#screate" ).s_create();*/
$( "#screate" ).s_create();
$( "#sclose" ).s_close();
$( "#sexit" ).s_exit();
$( "#smaximized" ).s_maximized();

View File

@ -1,2 +1 @@
<a href="#" id="screate" data-type="other" data-id="other">Create an "Other" sight!</a>
<a href="http://192.168.1.2:5000/audio/">test</a>
<a href="#" id="screate" data-type="other">Create an "Other" sight!</a>

View File

@ -16,8 +16,8 @@
<script src="../../js/sight.js"></script>
<script>
$(document).ready(function(){
/*addData("name", "Balazs", true);
getData("name");*/
addData("name", "Balazs", true);
getData("name");
});
</script>
</head>
@ -30,7 +30,6 @@
<div id="sminimize"></div>
</div>
<div id="content">
<a href="main.html">Open the main inside this sight!</a>
<div id="main_content"></div>
MAIN
<div id="main_text"></div>