-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·103 lines (98 loc) · 6.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!doctype html>
<html class="no-js" lang="he" dir="rtl">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-153595643-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-153595643-3');
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta property="og:url" content="https://e-gayon.com" />
<meta property="og:type" content="website" />
<meta property="og:title" content="אִי-גָיוֹן" />
<meta property="og:description" content="בינה מלאכותית המחוללת הגדרות נוֹנְסֵנְס לערכים שאתם מספקים לה" />
<meta property="og:locale" content="he_IL" />
<meta property="og:image" content="https://storage.googleapis.com/dadler_gpt2_data/e-gayon-icon.png" />
<title>אִי-גָיוֹן</title>
<meta name="description" content="אִי-גָיוֹן - מחולל הגדרות נוֹנְסֵנְס. מחולל ג'יבריש שנראה כמו ערכים בויקיפדיה. מבוסס על מודל בינה מלאכותית ג׳יפיטי-נאו פצפון שאומן על תקצירים מויקיפדיה העברית">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.7.3/css/mdb.min.css" rel="stylesheet">
</head>
<body dir="rtl">
<div dir="rtl" class="container" style="display: inline-block; text-align: right">
<h1 dir="rtl" class="my-2 mx-lg-2">אִי-גָיוֹן </h1>
<h2 dir="rtl" class="my-2 mx-lg-2">מחולל הגדרות נוֹנְסֵנְס</h2>
<div dir="rtl" class="px-lg-2 pt-0">
<form dir="rtl" class="md-form" style="color: #757575;">
<div dir="rtl" class="d-flex justify-content-end"></div>
<textarea dir="rtl" name="text_in" class="form-control md-textarea" rows="1" id="textarea_in" autofocus
placeholder="רשמו פה משהו כמו תחילת הגדרה של מונח, שם מלא (מומלץ) וכדומה"
onkeypress="process(event, this)"></textarea>
<button dir="rtl" class="btn btn-outline-primary waves-effect" type="submit">צור נונסנס</button>
</div>
<textarea readonly dir="rtl" name="text_out" class="form-control md-textarea" rows="5" id="textarea_out"
placeholder="כאן יופיע הנוֹנְסֵנְס הנוגע למונח שהזנתם"></textarea>
<!-- <div dir="rtl" style="display: flex; justify-content: center" id="shareBtn" class="btn btn-success clearfix">יצא מצחיק? - שתפו!</div> -->
</form>
</div>
<hr>
<p dir="rtl" style="text-align:center;">מודל השפה אומן על ידי <a href="https://twitter.com/Norod78">דורון אדלר</a><br/>
<p dir="rtl" style="text-align:center;">קוד המקור זמין <a href="https://github.com/Norod/gpt2-hewiki">בגיטהאב</a><br/>
הנה <a href="leket.html">לקט הגיגים </a> שנפלטו במהלך אימון המודל <br/>
בקרו ב <a href="https://story.e-gayon.com/">מחולל הסיפורים </a> <br/>
<!-- <div style="display: flex; justify-content: center" class="fb-like" data-href="https://e-gayon.com" data-width="120" data-layout="standard" data-action="like" data-size="small" data-share="false"></div>-->
</p>
</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/js/bootstrap.min.js"></script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.7.3/js/mdb.min.js"></script>
<script>
// Key Press Listener Attachment for #area.
function process(e) {
var code = (e.keyCode ? e.keyCode : e.which);
if (code == 13) { //Enter
// revent the default event.
event.preventDefault();
// Get the message value, stripping any newline characters.
$('form').submit();
}
}
$('form').on('submit', function (e) {
texarea_out = $('textarea#textarea_out')
texarea_out.select()
e.preventDefault();
texarea_out.val("נא להמתין")
$.post(window.location.href, $(this).serialize(), function (data) {
console.log('הידד, הג׳יבריש מוכן')
texarea_out.val("הידד, הג׳יבריש מוכן")
console.log(data)
texarea_out.val(data)
$('form').select()
$("#textarea_in").focus()
});
});
/*
document.getElementById('shareBtn').onclick = function() {
texarea_out = $('textarea#textarea_out')
share_text = texarea_out.val
FB.ui({
display: 'popup',
method: 'share',
quote: share_text,
href: 'https://e-gayon.com',
}, function(response){});
}
*/
</script>
</body>
</html>