cancel
Showing results for 
Search instead for 
Did you mean: 
kenneth_larsen
Community Champion

The Muse-k Man

“Trouble in Park City” — From the producer of KennethWare comes the heartwarming and inspiring tale of the benefits of having a programmer in your design community. See how having access to LTI, Canvas APIs, and a little jQuery can revitalize and enrich your design process and course development experience

Presenter: Kenneth Larsen​ - Utah State University

  Location Map & Room: SILVERADO 2

  Login to "Add a comment" below!

               

18 Replies
kenneth_larsen
Community Champion

Never heard of USU Design Tools (aka KennethWare), you can visit designtools.usu.edu to find out more.

dwillmore
Community Champion

Kenneth,

Would you mind sharing your slides?  You should also record your Canvas Trouble!

kenneth_larsen
Community Champion

My slides are web based and can be found at InstCon15 - The Muse-k Man​. Spacebar will take you to the next slide or you can use the arrow keys to navigate. Esc will bring up an overview where you can jump to a specific slide.

kenneth_larsen
Community Champion

Just for fun, here is the code to create the course filter on the My Courses page. Copy and paste it into your global JavaScript file:

/////// Course List Filter ////////

if ($('#my_courses_table').length > 0) {

    var kl_course_filter = '<div id="kl_course_filter_wrapper"><label for="kl_course_filter">Filter by Term:</label> <select id="kl_course_filter"><option value="all">View All</option>',

        kl_course_terms = [],

        txt;

    // Loop through all of the courses and build a list of terms

    $('td.course-list-term-column').each(function () {

        // Grab the text

        txt = $(this).text();

        // Add if not already in the array

        if ($.inArray(txt, kl_course_terms) === -1 ) {

            kl_course_terms.push(txt);

        }

    });

    kl_course_terms.sort();

    // Loop through array and build options

    $.each(kl_course_terms, function (index, el) {

        kl_course_filter += '<option value="' + el + '">' + el + '</option>';

    });

    kl_course_filter += '</select></div>';

    // Add the select before the course list

    $('#my_courses_table').before(kl_course_filter);

    // Filter the courses when a term is selected

    $('#kl_course_filter').change(function () {

        var selectedTerm = $('#kl_course_filter option:selected').text();

        console.log(selectedTerm);

        if (selectedTerm === 'View All') {

            $('.course-list-table-row').show();

        } else {

            $('.course-list-table-row').hide();

            $('.course-list-term-column:contains("' + selectedTerm + '")').closest('tr').show();

        }

    });

}

mjennings
Community Champion

You sir, are awesome. Thanks!

Matthew

Sent from my iPhone. Please excuse the brevity, typos & lack of nuance.

ilovell
Community Contributor

You just made my day! I was having a conference hangover and was wondering where to start. This got me going! Thanks!

Sylvia_Ami
Community Contributor

 @kenneth_larsen ​

You did an absolutely amazing intro at your presentation. "Trouble in River City" is one of the hardest songs to do. It's fast and has so many tongue-twisting words.  You are so creative, and brave!  I think you should get extra awesome sauce (and a badge) for having the most theme-based presentation.  I can't wait for the video of your presentation to be posted so I can try and catch all the words again.  Bravo!

tgardne5
Community Member

I completely agree! That was awesome,  @kenneth_larsen ​!

liuz21
Community Participant

Thanks Kenneth!