Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Fullscreen in OSWeb

Hi! When we run our experiment online it is not in full screen (it is centered on the screen, but we can see the screen (two white stripes) on the left and on the right side). How can we show our experiment in full screen?

Comments

  • Hi!

    To get the browser into fullscreen mode you'd usually use Element.requestFullscreen(). Did you try this already?

    Best,

    Kristian

  • I've moved your question to the OSWeb forum - they can help

  • FabFab
    edited September 2023

    Hi @goran123,

    You can try enabling the "Make browser full screen" in the OSWeb settings and this should work if your browser supports this function. Note however that some objects (like forms) then become unresponsive (due to a security feature of browsers). In that case, you can use code to enable the full screen mode in the early stages of the task. You can find relevant information in this previous thread (somewhere down the middle):

    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    Hi,

    I have been using Opensesame for several years and it worked really well. I am now trying to run a lexical decision study online, but I had the following error:

    uncaught typeerror: cannot read properties of undefined (reading 'apply') see the console for further details

    The source of the error seems to be my two in-line scripts: one for recording the handness of participants (so that they pressed the 'yes' button with their dominant hand), the other is to counterbalance.

    In-line script 1:

    if var.response_handedness_response =='l':

    var.y_response='z'

    var.n_response='m'

    else:

    var.y_response='m'

    var.n_response='z'

    In-line script 2:

    if self.get('subject_nr')%8 == 1:

    b1 = 0

    b2 = 10

    b3 = 10

    b4 = 10

    b5 = 10

    b6 = 10

    b7 = 10

    b8 = 10

    elif self.get('subject_nr')%8 == 2:

    b1 = 10

    b2 = 0

    b3 = 10

    b4 = 10

    b5 = 10

    b6 = 10

    b7 = 10

    b8 = 10

    elif self.get('subject_nr')%8 == 3:

    b1 = 10

    b2 = 10

    b3 = 0

    b4 = 10

    b5 = 10

    b6 = 10

    b7 = 10

    b8 = 10

    elif self.get('subject_nr')%8 == 4:

    b1 = 10

    b2 = 10

    b3 = 10

    b4 = 0

    b5 = 10

    b6 = 10

    b7 = 10

    b8 = 10

    elif self.get('subject_nr')%8 == 5:

    b1 = 10

    b2 = 10

    b3 = 10

    b4 = 10

    b5 = 0

    b6 = 10

    b7 = 10

    b8 = 10

    elif self.get('subject_nr')%8 == 6:

    b1 = 10

    b2 = 10

    b3 = 10

    b4 = 10

    b5 = 10

    b6 = 0

    b7 = 10

    b8 = 10

    elif self.get('subject_nr')%8 == 7:

    b1 = 10

    b2 = 10

    b3 = 10

    b4 = 10

    b5 = 10

    b6 = 10

    b7 = 0

    b8 = 10

    b9 = 10

    else:

    b1 = 10

    b2 = 10

    b3 = 10

    b4 = 10

    b5 = 10

    b6 = 10

    b7 = 10

    b8 = 0

    exp.set('b1',b1)

    exp.set('b2',b2)

    exp.set('b3',b3)

    exp.set('b4',b4)

    exp.set('b5',b5)

    exp.set('b6',b6)

    exp.set('b7',b7)

    exp.set('b8',b8)

    I deleted the first online script and changed the second into the following Javascript using an online converter, but I still got the same error message.

    var b1, b2, b3, b4, b5, b6, b7, b8, b9;

    if (this.get("subject_nr") % 8 === 1) {

     b1 = 0;

     b2 = 10;

     b3 = 10;

     b4 = 10;

     b5 = 10;

     b6 = 10;

     b7 = 10;

     b8 = 10;

    } else {

     if (this.get("subject_nr") % 8 === 2) {

      b1 = 10;

      b2 = 0;

      b3 = 10;

      b4 = 10;

      b5 = 10;

      b6 = 10;

      b7 = 10;

      b8 = 10;

     } else {

      if (this.get("subject_nr") % 8 === 3) {

       b1 = 10;

       b2 = 10;

       b3 = 0;

       b4 = 10;

       b5 = 10;

       b6 = 10;

       b7 = 10;

       b8 = 10;

      } else {

       if (this.get("subject_nr") % 8 === 4) {

        b1 = 10;

        b2 = 10;

        b3 = 10;

        b4 = 0;

        b5 = 10;

        b6 = 10;

        b7 = 10;

        b8 = 10;

       } else {

        if (this.get("subject_nr") % 8 === 5) {

         b1 = 10;

         b2 = 10;

         b3 = 10;

         b4 = 10;

         b5 = 0;

         b6 = 10;

         b7 = 10;

         b8 = 10;

        } else {

         if (this.get("subject_nr") % 8 === 6) {

          b1 = 10;

          b2 = 10;

          b3 = 10;

          b4 = 10;

          b5 = 10;

          b6 = 0;

          b7 = 10;

          b8 = 10;

         } else {

          if (this.get("subject_nr") % 8 === 7) {

           b1 = 10;

           b2 = 10;

           b3 = 10;

           b4 = 10;

           b5 = 10;

           b6 = 10;

           b7 = 0;

           b8 = 10;

           b9 = 10;

          } else {

           b1 = 10;

           b2 = 10;

           b3 = 10;

           b4 = 10;

           b5 = 10;

           b6 = 10;

           b7 = 10;

           b8 = 0;

          }

         }

        }

       }

      }

     }

    }

    exp.set("b1", b1);

    exp.set("b2", b2);

    exp.set("b3", b3);

    exp.set("b4", b4);

    exp.set("b5", b5);

    exp.set("b6", b6);

    exp.set("b7", b7);

    exp.set("b8", b8);

    I am now unsure of what to do to solve the error. Do you have any suggestions? Thanks so much in advance!

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games