Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
    <link rel="stylesheet" href="home.css">
    <script src="https://app.awesome-table.com/AwesomeTableInclude.js"></script>
    <title>Project Generator </title>
</head>

<body>
    <header>


    </header>
  <div class="container-fluid">
    <div class="row my-2">
           <div class="col-6">

    <h1 class="container-fluid">How it works</h1>   
        </div>
      <div class="col-6">
       <form class="d-flex">
                    <button id="startproject" class="btn btn-outline-success ms-auto btn-lg mx-5" type="button">Start a Project</button> </form>
      </div>
    </div>
  </div>
      
 
    <div class="container-fluid">
        <p>Use this site to see how the project process works, see examples of great projects, and get some help generating some of your own project ideas</p>
    </div>
    <div id="backgroundimage" class="p-3">
        <h3 class="my-2"><span class="projectprocess"> Project Process </span></h3>
        <div class="container my-2">
            <div class="row my-2">
                <div class="col-4 my-3">
                    <div class="list-group" id="list-tab" role="tablist">
                        <a class="list-group-item list-group-item-action active" id="list-home-list" data-bs-toggle="list" href="#list-home" role="tab" aria-controls="list-home">Explore</a>
                        <a class="list-group-item list-group-item-action" id="list-profile-list" data-bs-toggle="list" href="#list-profile" role="tab" aria-controls="list-profile">Design</a>
                        <a class="list-group-item list-group-item-action" id="list-messages-list" data-bs-toggle="list" href="#list-messages" role="tab" aria-controls="list-messages">Discover</a>
                        <a class="list-group-item list-group-item-action" id="list-settings-list" data-bs-toggle="list" href="#list-settings" role="tab" aria-controls="list-settings">Present</a>
                    </div>
                </div>
                <div class="col-8 projectprocess">
                    <div class="tab-content" id="nav-tabContent">
                        <div class="tab-pane fade show active" id="list-home" role="tabpanel" aria-labelledby="list-home-list">Explore! This is the where your journey begins – with a spark. What are you curious to know? What do you love doing? Where does your passion lie? This first stage of the project process will help you transform your initial ideas
                            into Driving Questions, questions that will become the heart your project.
                        </div>
                        <div class="tab-pane fade" id="list-profile" role="tabpanel" aria-labelledby="list-profile-list">Here, you will turn your initial ideas and Driving Questions into a project. Working with your advisor, you will determine the specific aspects of your project, including the best resources, a timeline, the deliverable, and the
                            rubric. Finally, once it the project is in place, you will officially propose the project!
                        </div>
                        <div class="tab-pane fade" id="list-messages" role="tabpanel" aria-labelledby="list-messages-list">This is the stage in the project process where work to answer your Driving Questions. Using your tasks and milestones as a guide, you must work hard to make sure your project is on track for completion. As you make progress, check
                            in often with your advisor and be open to feedback: projects will often evolve throughout the process!

                        </div>
                        <div class="tab-pane fade" id="list-settings" role="tabpanel" aria-labelledby="list-settings-list"> This is the point to which all your work has been building: the presentation! In this final stage of the project process, you will write a reflection, present your findings (including your deliverable), and finalize your project.
                            Use the guidelines here to make sure it is a success!
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
  </div>
        <div class="container my-3">
            <div class="d-grid gap-2">
                <button class="btn btn-primary fw-bolder py-4 border border-2" id="allButton" type="button"><h3>Generate Subject, Questions, and Deliverable!</h3></button>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row my-2">
                <div class="col-md-3 border border-1 border-dark projectprocess my-3 mx-auto ">
                    <h4 class="text-center py-1 border-1 border-dark border-bottom ">Subject</h4>

                    <input type="text" id="subjectText" name="subjectText" class="form-control text " placeholder="Type your Subject ">


                    <p class="text-center my-2 ">or</p>
                    <div class="d-grid gap-2 col-6 mx-auto ">
                        <button class="btn btn-primary " id="subjectButton" type="button ">Generate Subject</button>
                    </div>
                    <p class="my-2 border-top border-dark text-center ">Your subject is:</p>
                    <h5 id="subjectFinal" class="my-2 text-primary text-center ">Math</h5>
                </div>
                <div class="col-md-3 border border-1 border-dark projectprocess mx-auto my-3 ">
                    <h4 class="text-center py-1 border-1 border-dark border-bottom ">Question</h4>
                    <input type="text " id="questionText" class="text form-control " placeholder="Type your Question ">
                    <p class="text-center my-2 ">or</p>
                    <div class="d-grid gap-2 col-6 mx-auto ">
                        <button class="btn btn-primary " id="questionButton" type="button ">Generate Question</button>
                    </div>
                    <p class="my-2 border-top border-dark text-center ">Your Question is:</p>
                    <h5 id="questionFinal" class="my-2 text-primary text-center ">Why?</h5>
                </div>
                <div class="col-md-3 border border-1 border-dark projectprocess mx-auto my-3">
                    <h4 class="text-center py-1 border-1 border-dark border-bottom ">Deliverable</h4>
                    <input type="text " id="deliverableText" class="text form-control text " placeholder="Type your deliverable ">
                    <p class="text-center my-2 ">or</p>
                    <div class="d-grid gap-2 col-6 mx-auto">
                        <button class="btn btn-primary " id="deliverableButton" type="button ">Generate Deliverable</button>
                    </div>
                    <p class="my-2 border-top border-dark text-center ">Your deliverable is:</p>
                    <h5 id="deliverableFinal" class="m-bottom-2 text-primary text-center ">Deliverable</h5>

                </div>

            </div>
        </div>
        <div class="container">
            <div class="d-grid gap-2">
                <button class="btn py-3 btn-primary border border-2 fw-bolder" id="finalButton" type="button"><h3>YES!  This is my Project.  Make it so!</h3></button>
            </div>

        </div>

    </div>
    <div class="container">
      <h3 class="my-4"><span class="border-bottom border-dark border-2 my-4">Your final project:</span>
            <div id="finalProject"></div>
        </h3>
    </div>





    <script src=app.js></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js " integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB " crossorigin="anonymous "></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js " integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13 " crossorigin="anonymous "></script>

</body>



</html>
              
            
!

CSS

              
                    #backgroundimage {
        /* The image used */
        /* background-image: url("/Users/timquealy/VS Code/project generator/img/Cover3-2014.jpg"); */
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)), url("https://images.unsplash.com/photo-1605721911519-3dfeb3be25e7?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=735&q=80");
        ));
        /* Set a specific height */
        min-height: 300px;
        /* Create the parallax scrolling effect */
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

#allButton{
  border-radius: 25px;
}
#finalButton{
  border-radius: 25px;
}
    
    .projectprocess {
        background-color: rgba(232, 232, 232, 0.95);
        color: black;
        padding: 5px;
      border-radius:10px;
    }
    
    #finalProject {
        border: 1px solid black;
        border-radius: 20px;
        margin: 10px;
        padding: 20px;
/*         background-color: rgb(102, 244, 63); */
        transition: all .1s;
    }
    
    #finalProject:hover {
        background-color: white;
      border: yellow 5px solid;
        color: black;
        transform: scale(105%);
      box-shadow: 0 10px 25px rgba(145, 92, 182, .4)
    }

              
            
!

JS

              
                console.log("Hi")

const questionList = [
    "How can ______ improve _______?",
    "How can _______ be applied to ________?",
    "How can _______ change ________?",
    "How would you design a new _______?",
    "How does _________ affect __________?",
    "What impact did/does __________ have on ________?",
    "What makes a good/effective ________"
]

const subjectList = [
    '4th Year Math',
    'Algebra',
    'Algebra II',
    'Geometry',
    'Economics',
    'Geography',
    'U.S. Citizenship and Government',
    'U.S. History',
    'World History',
    'Grade Level Projects',
    'Service Learning',
    'Sexual Health Class',
    'Art: Creation & Evaluation',
    'Art: Analysis & Interpretation',
    'Art: Creation & Performance',
    'Biology',
    'Chemistry',
    'Earth and Space Science',
    'Nature of Science and Engineering',
    'Physical Science',
    'Physics',
    'Language Arts: Literature',
    'Language Arts: Writing',
    'Career Exploration',
    'Language Arts: NonFiction',
    'Personal Health',
    'Physical Fitness and Physical Education',
    'World Language',
    'Elective',
]

const deliverableList = ['Advertisements',
    'Advise columns',
    'Allegories',
    'Anecdotes',
    'Anthems',
    'Apologies',
    'Appendices',
    'Application',
    'Applications',
    'Assumptions',
    'Autobiographies',
    'Awards',
    'Ballads',
    'Beauty',
    'Bedtime stories',
    'Beginnings',
    'Billboards',
    'Biographies',
    'Blurbs',
    'Book',
    'Book jackets',
    'Booklets',
    'Books',
    'Bulletin boards',
    'Bulletins',
    'Bumper stickers',
    'Businesses',
    'Calorie charts',
    'Campaign',
    'Cartoons',
    'CD',
    'Charts',
    'Children’s stories',
    'Collages',
    'Collections',
    'Comic books',
    'Commercials',
    'Community bulletin',
    'Comparisons',
    'Complaints',
    'Computer Program',
    'Computer simulations',
    'Confessions',
    'Constitutions',
    'Contracts',
    'Conversation stoppers',
    'Conversations',
    'Costumes',
    'Couplets',
    'Court trials',
    'Critiques',
    'Dance',
    'Data sheets',
    'Debate',
    'Definitions',
    'Demonstrations',
    'Dialogues',
    'Diaries',
    'Dictionaries',
    'Diets',
    'Dioramas',
    'Directions',
    'Displays',
    'Do’s and Don’ts',
    'Documentaries',
    'Documents',
    'Dramas',
    'Editorials',
    'Encyclopedia entries',
    'Epilogues',
    'Essays',
    'Evaluations',
    'Exaggerations',
    'Exclamations',
    'Excuses',
    'Experiments',
    'Explanations',
    'Fables',
    'Fairy tails',
    'Fantasies',
    'Films',
    'Flyers',
    'Folklore',
    'Forecast',
    'Fortunes',
    'Game',
    'Game rules',
    'Games',
    'Ghost stories',
    'Good news-bad news',
    'Gossip',
    'Graffiti',
    'Graphs',
    'Greeting',
    'Grocery lists',
    'Headlines',
    'Horoscopes',
    'How-to guide',
    'Illustrations',
    'Imitations',
    'Impromptu speeches',
    'Insults',
    'Interviews',
    'Introductions',
    'Invitations',
    'Job',
    'Jokes',
    'Journals',
    'Labels',
    'Laws',
    'Legends',
    'Letters',
    'Lies',
    'Lists',
    'Love notes',
    'Lyrics',
    'Machines',
    'Magazines',
    'Maps',
    'Melodramas',
    'Memories',
    'Memos',
    'Metaphors',
    'Models',
    'Monuments',
    'Movie reviews',
    'Movie scripts',
    'Music videos',
    'Musicals',
    'Mysteries',
    'Myths',
    'News Report',
    'Newscasts',
    'Newsletters',
    'Newspapers',
    'Nursery rhymes',
    'Obituaries',
    'Operas',
    'Opinions',
    'Paintings',
    'Palindromes',
    'Pamphlets',
    'Panel discussion',
    'Pantomimes',
    'Parables',
    'Persuasive letters',
    'Petitions',
    'Photo album',
    'Photo essay',
    'Picture books',
    'Playing Cards',
    'Plays',
    'Poems',
    'Policy papers',
    'Political Campaigns',
    'Post Cards',
    'Posters',
    'Prayers',
    'Problem solutions',
    'Problems',
    'Profiles and portraits',
    'Profound sayings',
    'Proposals',
    'Protest alerts',
    'Proverbs',
    'Puns',
    'Puppet shows',
    'Puzzles',
    'Questionnaires',
    'Quotations',
    'Radio plays',
    'Ransom Notes',
    'Reactions',
    'Recipes',
    'Record covers',
    'Recordings',
    'Remedies',
    'Reminiscences/memoirs',
    'Reports',
    'Research',
    'Reviews',
    'Riddles',
    'Rules',
    'Sales pitches',
    'Satires',
    'Scrapbooks',
    'Sculptures',
    'Secrets',
    'Self-descriptions',
    'Sequels',
    'Serialized',
    'Show',
    'Silly sayings',
    'Simulations',
    'Sketches (skits)',
    'Sketching',
    'Slides',
    'Soap operas',
    'Songs',
    'Speeches',
    'Speeches',
    'Spoofs',
    'Spooky stories',
    'Sports accounts',
    'Stitchery',
    'Stories',
    'Stories',
    'Stream of consciousness',
    'Superstitions',
    'Surveys',
    'Symbols',
    'Table of',
    'Talk shows',
    'Tall tales',
    'Telegrams',
    'Tests',
    'Thank you notes',
    'Theater',
    'Theories',
    'Tips',
    'Tongue twisters',
    'Traffic rules',
    'Transparencies',
    'Travel folders',
    'Travel posters',
    'TV commercials',
    'TV guides',
    'TV programs',
    'Underground newspaper',
    'Used car description',
    'Videos',
    'Want adds',
    'Wanted posters',
    'Warnings',
    'Weather',
    'Web sites',
    'Wills',
    'Wise sayings',
    'Wishes',
    'Yellow pages',
    'Zines'
]

const subjectText = document.querySelector("#subjectText");
const questionText = document.querySelector("#questionText");
const deliverableText = document.querySelector("#deliverableText");
const startProject = document.querySelector("#startproject");
const print = document.querySelector("#print")











let subjectTarget = document.querySelector("#subjectFinal");
const subjectButton = document.querySelector("#subjectButton")

const finalButton = document.querySelector("#finalButton");
const finalProject = document.querySelector("#finalProject");

let deliverableTarget = document.querySelector("#deliverableFinal");
const deliverableButton = document.querySelector("#deliverableButton")

let questionTarget = document.querySelector("#questionFinal");
const questionButton = document.querySelector("#questionButton")

const allButton = document.querySelector("#allButton")


subjectText.addEventListener('change', function() {
    subjectTarget.innerText = subjectText.value;
});

questionText.addEventListener('change', function() {
    questionTarget.innerText = questionText.value;
});

deliverableText.addEventListener('change', function() {
    deliverableTarget.innerText = deliverableText.value;
});


allButton.addEventListener('click', function() {
    subjectTarget.innerText = generateItem(subjectList);
    deliverableTarget.innerText = generateItem(deliverableList);
    questionTarget.innerText = generateItem(questionList);
});

startProject.addEventListener('click', function() {
    subjectTarget.innerText = generateItem(subjectList);
    deliverableTarget.innerText = generateItem(deliverableList);
    questionTarget.innerText = generateItem(questionList);
    go();
    finalProject.scrollIntoView();

});

function generateItem(contentList) {
    let rand = Math.floor(Math.random() * contentList.length);
    return contentList[rand];
}

subjectButton.addEventListener('click', function() {
    subjectTarget.innerText = generateItem(subjectList);
});


deliverableButton.addEventListener('click', function() {
    deliverableTarget.innerText = generateItem(deliverableList);
});
questionButton.addEventListener('click', function() {
    questionTarget.innerText = generateItem(questionList);
});



function go() {
    let finalProjectText = `You'll ask "${questionTarget.innerText}" within the thrilling subject of ${subjectTarget.innerText} and demonstrate your answer by presenting a(n) ${deliverableTarget.innerText}.  
   
    Wow, that is a cool project - better head over to Headrush to make it happen!`;
    finalProject.innerText = finalProjectText
};

finalButton.addEventListener("click", go)
              
            
!
999px

Console