Commit f8a279c9 authored by Jorge S. Mendes de Jesus's avatar Jorge S. Mendes de Jesus
Browse files

update documentation

parent 9d5deebe
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 3.8</pydev_property>
<?xml version="1.0" encoding="UTF-8"?>
<classpathentry kind="src" path="www"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attribute name="hide" value="true"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="AfricaTour">
<wb-resource deploy-path="/" source-path="/www"/>
<property name="context-root" value="AfricaTour"/>
<?xml version="1.0" encoding="UTF-8"?>
<fixed facet="wst.web"/>
<fixed facet="wst.jsdt.web"/>
<installed facet="wst.web" version="1.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
\ No newline at end of file
FROM python:2.7
FROM python:3.8.4-alpine3.11
COPY ./ /opt/leuven/
COPY ./www /opt/leuven/www
Generic instructions and documentation concerning the Leuven virtual tour
- [](
- [](
Tour is run from OC, project leuven:
oc project leuven
docker build -t .
docker push
oc import-image leuven-v0-2
Google tour key
The google tour key is associated to the ``
The key is used on `index.html` around line 30:
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "";
Google tour medatainfo
Development Notes
Hierbij de files voor de virtuele tour
De bestanden staan geordend zoals ze op mijn machine werken
......@@ -18,3 +65,4 @@ De gebruikte video’s staan in de folder www/assets/video.
De foto’s van de objecten in de vitrinekasten en de foto’s van de panelen staan in www/images.
""" Script to server the page independent """
import sys,os
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
from socket import socket, SOCK_DGRAM,AF_INET
HandlerClass = SimpleHTTPRequestHandler
ServerClass = BaseHTTPServer.HTTPServer
Protocol = "HTTP/1.0"
SubFolder= "www"
port = 80 # For testing change to another port
import os
import http.server
import socketserver
def getIP():
"""Determines the current IP inside the WUR network."""
return s.getsockname()[0]
return ""
SubFolder = "www"
ip = ""
port = 80 # For testing change to another port (you can only bind to port 80 as root)
server_address = (getIP(), port)
HandlerClass.protocol_version = Protocol
httpd = ServerClass(server_address, HandlerClass)
sa = httpd.socket.getsockname()
print "Serving HTTP on", sa[0], "port", sa[1], "..."
\ No newline at end of file
server_address = (ip, port)
Handler = http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer(server_address, Handler) as httpd:
print(f"serving at: {ip}:{port}")
......@@ -26,10 +26,10 @@
<script type="text/javascript" src="assets/js/tour.js"></script> <!-- this js contains the initTour -->
<script >
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "";
s.typet = "text/javascript";
s.src = "";
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment