dcsimg
www.webdeveloper.com
Results 1 to 13 of 13

Thread: How to replicate a webpage

  1. #1
    Join Date
    Sep 2017
    Posts
    5

    How to replicate a webpage

    I am not a website developer. I wish I were.
    I teach English online.
    I provide my students with quizzes, in the form of a MS Word or MS Excel document (I send the files to the students via Skype of email). I currently do not have a website.

    I would like to know how one website created their quizzes. The design, layout and functions are perfect and I would like to get the code or the module/template so I could create my own .htm (I think) quizzes and files.

    I hope my non-technical explanation is understandable

    Here is the web page/quiz that I referred to:

    https://www.englishpage.com/gerunds/...initives_1.htm

    Thank you in advance... Have a good day...

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    4,998
    Sounds like you need a CMS where your main focus is on the content of the site rather than building a site from scratch.

    Your first port of call is a web host and search for a domain name that you want to use (if available) and then using their control panel, install the preinstalled CMS's and play with them.

    A really cheap hosting plan on a Linux server including domain name, all you can eat traffic, subdomains, databases, web space, traffic is what you aim for, too many companies cap websites and thats how you incur additional fees easily and especially when someone hotlinks to your content. So you want a web host that offers an all in one package and one in your own country so that you have your consumer rights and some comeback if things go sideways.

    My web host is very cheap, with domain name and all inclusive, its about 2.50 a month.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  3. #3
    Join Date
    Jan 2017
    Location
    Coimbatore, India
    Posts
    106
    Hello Richard,
    The thing you are looking for is a LMS (Learning management system). There are many LMS out there, with lot many features. Moodle is the most famous. Hope this will help you get started.

    Once you decided on one, like the above moderator has explained, you need to purchase a domain and hosting.

  4. #4
    Join Date
    Sep 2006
    Location
    new york
    Posts
    314
    ctrl-u view source to see how page is constructed

    that https://moodle.org/ is interesting
    Last edited by auntnini; 09-12-2017 at 01:12 PM.

  5. #5
    Join Date
    Sep 2017
    Posts
    5
    THANK YOU ... Super Moderator, evoluer, and auntnini

    I should have said that I was hoping that I could create my quizzes with the same layout, and dropdown answers, and automatic "correct or incorrect" display.
    I was hoping that it could be done using a template or a program that functions the same way as the quiz in the website exmpe, but without running on a website (I don't have, nor do I need to have a website).
    I was hoping I could send the files (the quizzes) to my students and they would open the quizzes in their default browser.

    Please excuse my poor descriptions... I simply don't know the proper technical terminology.

    THANK YOU ALL...

  6. #6
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    4,998
    So how are people able to complete these quizzes and tests without cheating and looking at the code?
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  7. #7
    Join Date
    Sep 2017
    Posts
    5
    Quote Originally Posted by \\.\ View Post
    So how are people able to complete these quizzes and tests without cheating and looking at the code?
    Super M... You've asked a very reasonable question.
    First, most of my students are professionals, but not website professionals like you, so they wouldnot know where to find the answer in the code.
    Second, they need to learn English for their work, so they do not benefit if they cheat. And the tests are not scored, they are simply for practising what they have learned.
    I thought (and I may be wrong) that the quiz could function in the same way that an excel file could function by showing the answer choices in a dropdown menu and also identifying correct and incorrect answers. I thought this could be done in an HTM or HTML file without the need of a website.
    Thank you for your support up to this point...

  8. #8
    Join Date
    Dec 2012
    Posts
    1,449
    I thought this could be done in an HTM or HTML file without the need of a website.
    Yes, this can be done. However, I don't know a tool that supports it. Creating such HTML file requires some coding skills. One could make the page configurable, so that you only need to fill in a configuation, e. g. in JSON format. Or, to make it more user friendly, one could create a form where you can enter the parts of the sentence and the options.

  9. #9
    Join Date
    Dec 2012
    Posts
    1,449
    PS: Such configuration could look like this:
    Code:
        <script>
            // Modify this configuration
            var data = [
                {
                    firstpart: "Dan enjoys ",
                    options: ["reading", "to read"],
                    lastpart: " science fiction.",
                    correct: 1
                },
                {
                    firstpart: "Cheryl suggested ",
                    options: ["seeing", "to see"],
                    lastpart: " a movie after work.",
                    correct: 2
                }
            ];
            // Do not modify below this point
        </script>
    Base on this the complete HTML page including the checking procedure could be created automatically.

  10. #10
    Join Date
    Sep 2017
    Posts
    5
    Sempervivum...

    Due to my lack of coding skills, I would need something like you described, e.g., "... a form where you can enter the parts of the sentence and the options."
    I was hoping there might be a template or little program (or executable file ?) in which I could simply insert my questions, the multiple choice answers, and the correct answers.
    Thank you for your helpful information.

  11. #11
    Join Date
    Dec 2012
    Posts
    1,449
    Made a small and simple mockup of such editor. Check if you like it:
    Code:
    <!doctype html>
    <html>
    <head>
        <style>
            .editable {
                border: 1px solid grey;
            }
            #preview {
                border: 2px solid grey;
                border-radius: 5px;
                min-height: 20px;
            }
            h4 {
                margin: 2px;
            }
        </style>
    </head>
    <body>
        <h4>Preview</h4>
        <div id="preview"></div>
        <p>
            Leading part of sentence:
            <span class="editable" id="leading" contentEditable>Enter text here</span>
        </p>
        <p>
            <input class="opt" id="option1" />First option<br />
            <input class="opt" id="option2" />Second option<br />
        </p>
        <p>
            Trailing part of sentence:
            <span class="editable" id="trailing" contentEditable>Enter text here</span>
        </p>
        <button id="append">Append</button>
        <script>
            append.addEventListener("click", function () {
                var cont = document.createElement("p");
                var ldng = document.createElement("span");
                ldng.innerHTML = leading.innerHTML;
                var trlng = document.createElement("span");
                trlng.innerHTML = trailing.innerHTML;
                var sel = document.createElement("select");
                var opt1 = document.createElement("option");
                opt1.innerHTML = option1.value;
                sel.append(opt1);
                var opt2 = document.createElement("option");
                opt2.innerHTML = option2.value;
                sel.append(opt2);
                cont.append(ldng);
                cont.append(sel);
                cont.append(trlng);
                preview.append(cont);
            });
        </script>
    </body>
    </html>

  12. #12
    Join Date
    Sep 2017
    Posts
    5
    Sempervivum

    You have gone above and beyond the call of duty... in other words, I truly appreciate the code you've written. It was very kind of you to take your time to provide this valuable help.
    Unfortunately, I'm not sure what to do with the code you've written.
    But I will try to find out how to use your good work.
    Again, I thank you very much...

  13. #13
    Join Date
    Dec 2012
    Posts
    1,449
    Hallo Richard,
    you just need to place the code into a textfile and give it the extension ".html". Check out the attachment. I hope that the handling is self explaining. Enter the leading an trailing part of the sentence and the options. By checking a button at the left you define which option is correct. Then press append and the sentence will be appended to the preview area. When you've finished you can save the quiz to disk.

    quizedit-3.zip
    Last edited by Sempervivum; Today at 03:44 AM.

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles