Uncaught ReferenceError: eel is not defined
at all (main.html:24)
at main.html:28
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import eel
import eel.browsers
@eel.expose
def test():
return "hell"
eel.init("web")
eel.browsers.set_path('chrome', '.\\res\\App\\Chrome-bin\\chrome.exe')
eel.start("main.html",size=(700,700),mode="chrome")
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Language' content='ua'>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<meta name='viewport' content='width = device-width,height = device-height, initial-scale = 1'>
<style type="text/css">
body{
background: black;
color:white;
}
</style>
<script scr="eel.js"></script>
</head>
<body>
<p id="text">text</p>
<script>
function all() {
var t = document.getElementById("text");
var text = eel.test(); //-- 24 -
t.innerHTML = text;
}
all(); //-- 28 -
</script>
</body>
</html>