Advertisement
DaCurse

Bar Simulator (Not made properly)

Aug 11th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.            
  3.             window.smoothScroll = function(target) {
  4.     var scrollContainer = target;
  5.     do { //find scroll container
  6.         scrollContainer = scrollContainer.parentNode;
  7.         if (!scrollContainer) return;
  8.         scrollContainer.scrollTop += 1;
  9.     } while (scrollContainer.scrollTop == 0);
  10.  
  11.     var targetY = 0;
  12.     do { //find the top of target relatively to the container
  13.         if (target == scrollContainer) break;
  14.         targetY += target.offsetTop;
  15.     } while (target = target.offsetParent);
  16.  
  17.     scroll = function(c, a, b, i) {
  18.         i++; if (i > 30) return;
  19.         c.scrollTop = a + (b - a) / 30 * i;
  20.         setTimeout(function(){ scroll(c, a, b, i); }, 20);
  21.     }
  22.     // start scrolling
  23.     scroll(scrollContainer, scrollContainer.scrollTop, targetY, 0);
  24. }
  25.            
  26.  
  27.  function onTestChange() {
  28.     var key = window.event.keyCode;
  29.  if (document.getElementById("txtArea").value.length==100){
  30.          alert("בר לא מסוגל להבין משפטים עם יותר מ-100 תווים")
  31.         return false;
  32.     }
  33.     // If the user has pressed enter
  34.     if (key === 13) {
  35.         document.getElementById("recentinput").innerHTML="<font color='#333333'>אני:</font><br>"+document.getElementById("txtArea").value;
  36.          setTimeout(barThinking,350)
  37.     }
  38.     else {
  39.         return true;
  40.     }
  41. }
  42.            
  43.            function barThinking(){
  44.             document.getElementById("recentanswer").style.color='#333333';
  45.             document.getElementById("recentanswer").innerHTML="בר חושב";
  46.             document.getElementById("recentanswer").className='loading';
  47.                setTimeout(answer,3000)
  48.         }
  49.            
  50.            function answer()
  51.            {
  52.                var insult="זונה";
  53.                if (document.getElementById("txtArea").value.indexOf(insult) >= 0){
  54.                    var rand="שתוק יא בתול";
  55.                }
  56.                else{
  57.                var possibleAnswers = ["קניה", "תעה", "רציני?", "בטוח?", "מה השעה?", "בתול", "אה טוב", "אפ", "ועכשיו?", "למה רוב הבנות לא מסתפקות בבנים? או שהן ביסקסואליות או שהן ''סטרייטיות'' שממש לא מתנהגות ככה, כי הן זורמות עם בנות אחרות לדברים מיניים כמו נשיקה ארוכה או נגיעוץ באיברים מיניים.", "אלוף עמיקם נורקין מונה למפקד חיל האוויר והחליף בתפקידו את אלוף אמיר אשל, שכיהן בתפקיד בחמש השנים האחרונות. נורקין שימש בעברו כראש להק אוויר וכראש מטה חיל האוויר ובתפקידו הקודם כראש אגף התכנון של צה''ל.", "נער בן 14 טבע בבריכה בקיבוץ עמיעד שבגליל העליון ומצבו מוגדר קשה. הנער טבע לאחר שלקה בהתקף אפילפסיה ובתום פעולות החייאה פונה למרכז הרפואי זיו בצפת.", "איך מתמודדים עם הנחיתות שלנו מול בנות? הרי אנחנו הבנים נחותים מול בנות שוות עם תחת שנראות טוב.. אנחנו אפילו לא מתקרבים לרמה שלהן.. אין לנו שום איבר בגוף שמתקרב לשלמות של ישבן/חזה בולטים.. איך אפשר להתמודד עם הנחיתות הזאת? היא הורגת אותי ומתסכלת מאד.", "אין לי מושג מה לעשות עם החיים, בקרוב אני בן 24 ואין לי מושג בכלל מה לעשות בחיים האלה.. תמיד התבודדתי ואין לי חברים בכלל, אני טיפוס שבקושי מדבר, אין לי מושג על מה לדבר עם אנשים ואיך להתחבר אליהם, אי אפשר לדעת מה נכון ומה עדיף.. יש יותר מדי אפשרויות ואופציות", "מחפש יזיזה 16+, מי שמעוניינת נא ליצור קשר בפרטי."]
  58.                 var rand = possibleAnswers[Math.floor(Math.random() * possibleAnswers.length)];
  59.                 }
  60.                document.getElementById("recentanswer").innerHTML="<font color='#333333'>בר:</font><br>"+rand;
  61.                document.getElementById("recentanswer").style.color='red';
  62.             document.getElementById("recentanswer").className='x';
  63.                
  64.            }
  65.  
  66. window.onload = function() {
  67.  setTimeout(popupdisplay,26000)
  68. };
  69.  
  70. function popupdisplay()
  71. {
  72. document.getElementById('popup').style.display='block'
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement