Skip to content

Different way to call functions #2

Description

@theGiallo

I was having troubles with the two calls. I've found infos here and fixed in this way:

string replace = "<script>\r\n\t\tfunction FixInputOnSubmit() {\r\n\t\t\tdocument.getElementById("fixInput").blur();\r\n\t\t\tevent.preventDefault();\r\n\t\t}\r\n\t</script>\r\n

\r\n\t\t<form onsubmit="FixInputOnSubmit()" autocomplete="off" style="width: 0px; height: 0px; position: absolute; top: -9999px;">\r\n\t\t\t<input type="text" id="fixInput" oninput="gameInstance.Module.asmLibraryArg._FixInputUpdate()" onblur="gameInstance.Module.asmLibraryArg._FixInputOnBlur()" style="font-size: 42px;">\r\n\t\t\r\n\t
\r\n\t<div class="webgl-content">";

<input type="text" id="fixInput" oninput="gameInstance.Module.asmLibraryArg._FixInputUpdate()" onblur="gameInstance.Module.asmLibraryArg._FixInputOnBlur()" style="font-size: 42px;">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions