Quests.js: Difference between revisions

From Wiki The-West EN
Jump to navigation
(Created page with "var QuestsDict = [{ 'id': 1, 'type': 1, 'name': 'Save the saloon, part 1', 'link': 'https://wiki.the-west.net/wiki/Save the saloon, part 1' }, { 'id': 2, 'type': 1, 'name': 'The cattle herd', 'link': 'https://wiki.the-west.net/wiki/The cattle herd' }, { 'id': 3, 'type': 1, 'name': 'Unforgiven', 'link': 'https://wiki.the-west.net/wiki/Unforgiven' }, { 'id': 4, 'type': 1, 'name': 'Manhunt', 'link': 'https://wi...")
 
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1,385: Line 1,385:
     'link': 'https://wiki.the-west.net/wiki/The evil plans of the bandits'
     'link': 'https://wiki.the-west.net/wiki/The evil plans of the bandits'
}, {
}, {
    'id': 280,
    'type': 1,
    'name': 'Boring harvest time',
    'link': 'https://wiki.the-west.net/wiki/Boring harvest time'
},{
    'id': 281,
    'type': 1,
    'name': 'Henry\'s garden',
    'link': 'https://wiki.the-west.net/wiki/Henry%27s_garden'
},{
    'id': 282,
    'type': 1,
    'name': 'Heřman\'s visit',
    'link': 'https://wiki.the-west.net/wiki/Heřman%27s_visit'
},{
    'id': 283,
    'type': 1,
    'name': 'Trapper\'s history',
    'link': 'https://wiki.the-west.net/wiki/Trapper%27s_history'
},{
    'id': 284,
    'type': 1,
    'name': 'The Sinister Road: the Nine Levels of Mictlān',
    'link': 'https://wiki.the-west.net/wiki/The_Sinister_Road:_the_Nine_Levels_of_Mictlān'
},{
    'id': 285,
    'type': 1,
    'name': 'God forgives ...',
    'link': 'https://wiki.the-west.net/wiki/God_forgives_...'
},{
    'id': 286,
    'type': 1,
    'name': 'What happened in the field?',
    'link': 'https://wiki.the-west.net/wiki/What_happened_in_the_field'
},{
    'id': 287,
    'type': 1,
    'name': 'Gifts and clues',
    'link': 'https://wiki.the-west.net/wiki/Gifts_and_clues'
},{
    'id': 288,
    'type': 1,
    'name': 'Winter Festival',
    'link': 'https://wiki.the-west.net/wiki/Winter_Festival'
},{
    'id': 289,
    'type': 1,
    'name': 'Gambling',
    'link': 'https://wiki.the-west.net/wiki/Gambling'
},{
    'id': 290,
    'type': 1,
    'name': 'Love for life',
    'link': 'https://wiki.the-west.net/wiki/Love_for_life'
},{
    'id': 291,
    'type': 1,
    'name': 'Panem et venenum',
    'link': 'https://wiki.the-west.net/wiki/Panem_et_venenum'
},{
    'id': 294,
    'type': 1,
    'name': 'Searching for a cure',
    'link': 'https://wiki.the-west.net/wiki/Searching_for_a_cure'
},{
    'id': 295,
    'type': 1,
    'name': 'Water splashing tradition',
    'link': 'https://wiki.the-west.net/wiki/Water_splashing_tradition'
},{
    'id': 296,
    'type': 1,
    'name': 'Searching for the culprit',
    'link': 'https://wiki.the-west.net/wiki/Searching_for_the_culprit'
},{
    'id': 297,
    'type': 1,
    'name': 'The missing explorer',
    'link': 'https://wiki.the-west.net/wiki/The_missing_explorer'
},{
    'id': 298,
    'type': 1,
    'name': 'Searching for the culprit part 2',
    'link': 'https://wiki.the-west.net/wiki/Searching_for_the_culprit_part_2'
},{
    'id': 299,
    'type': 1,
    'name': '16th Birthday',
    'link': 'https://wiki.the-west.net/wiki/16th_Birthday'
},{
    'id': 300,
    'type': 1,
    'name': 'The best craftsman',
    'link': 'https://wiki.the-west.net/wiki/The_best_craftsman'
},{
    'id': 301,
    'type': 1,
    'name': 'Visiting Indian village',
    'link': 'https://wiki.the-west.net/wiki/Visiting_Indian_village'
},{
    'id': 302,
    'type': 1,
    'name': 'Maya\'s unusual hobby',
    'link': 'https://wiki.the-west.net/wiki/Maya%27s_unusual_hobby'
},{
    'id': 303,
    'type': 1,
    'name': 'Danish tradition',
    'link': 'https://wiki.the-west.net/wiki/Danish_tradition'
},{
     'id': 2000,
     'id': 2000,
     'type': 2,
     'type': 2,
Line 1,542: Line 1,652:


(function($) {
(function($) {
QuestsDict.forEach(function(quest) {
    $(document).ready(function() {
var $span;
        function populateQuests(filteredQuests) {
if (quest.type === 1) {
            $('#questContainer').empty();
$span = $('<span>', {
            filteredQuests.forEach(function(quest) {
class: 'normal_quest',
                var $span, $a;
'data-url': quest.link,
                if (quest.type === 1) {
text: quest.name
                    $span = $('<span>', {
});
                        class: 'normal_quest',
} else if (quest.type === 2) {
                        text: quest.name
$span = $('<span>', {
                    });
class: 'repeatable_quest',
                } else if (quest.type === 2) {
'data-url': quest.link,
                    $span = $('<span>', {
text: quest.name
                        class: 'repeatable_quest',
});
                        text: quest.name
}
                    });
$('#questContainer').append($span);
                }
});
 
                $a = $('<a>', {
                    href: quest.link,
                    target: '_blank'
                }).append($span);
 
                $('#questContainer').append($a);
            });
        }
 
        $('#QsearchBox').on('keyup', function() {
            var searchValue = $(this).val().toLowerCase();
            var filteredQuests = QuestsDict.filter(function(quest) {
                return quest.name.toLowerCase().includes(searchValue);
            });
            populateQuests(filteredQuests);
        });
 
        $('.quickSortQuest').on('click', function() {
            $('.tw2gui_selectbox').toggle();
        });
 
        $('.tw2gui_selectbox_content span').on('click', function() {
            var sortOption = $(this).text();
            var sortedQuests = sortQuests(QuestsDict, sortOption);
            populateQuests(sortedQuests);
            $('.tw2gui_selectbox').hide();
        });
 
        function sortQuests(quests, option) {
            switch (option) {
                case 'Sort by ID (Desc)':
                    return quests.sort((a, b) => b.id - a.id);
                case 'Sort by ID (Asc)':
                    return quests.sort((a, b) => a.id - b.id);
                case 'Sort by A-Z (Desc)':
                    return quests.sort((a, b) => b.name.localeCompare(a.name));
                case 'Sort by A-Z (Asc)':
                    return quests.sort((a, b) => a.name.localeCompare(b.name));
                default:
                    return quests;
            }
        }
 
        populateQuests(QuestsDict);
    });
})(jQuery);
})(jQuery);

Latest revision as of 00:46, 29 June 2024

var QuestsDict = [{

   'id': 1,
   'type': 1,
   'name': 'Save the saloon, part 1',
   'link': 'https://wiki.the-west.net/wiki/Save the saloon, part 1'

}, {

   'id': 2,
   'type': 1,
   'name': 'The cattle herd',
   'link': 'https://wiki.the-west.net/wiki/The cattle herd'

}, {

   'id': 3,
   'type': 1,
   'name': 'Unforgiven',
   'link': 'https://wiki.the-west.net/wiki/Unforgiven'

}, {

   'id': 4,
   'type': 1,
   'name': 'Manhunt',
   'link': 'https://wiki.the-west.net/wiki/Manhunt'

}, {

   'id': 5,
   'type': 1,
   'name': 'Fire heart',
   'link': 'https://wiki.the-west.net/wiki/Fire heart'

}, {

   'id': 6,
   'type': 1,
   'name': 'Gemstones',
   'link': 'https://wiki.the-west.net/wiki/Gemstones'

}, {

   'id': 7,
   'type': 1,
   'name': 'Bob',
   'link': 'https://wiki.the-west.net/wiki/Bob'

}, {

   'id': 8,
   'type': 1,
   'name': 'The hunt',
   'link': 'https://wiki.the-west.net/wiki/The hunt'

}, {

   'id': 9,
   'type': 1,
   'name': 'Clothes make the man',
   'link': 'https://wiki.the-west.net/wiki/Clothes make the man'

}, {

   'id': 10,
   'type': 1,
   'name': 'The Dalton clan',
   'link': 'https://wiki.the-west.net/wiki/The Dalton clan'

}, {

   'id': 11,
   'type': 1,
   'name': 'Three Rivers',
   'link': 'https://wiki.the-west.net/wiki/Three Rivers'

}, {

   'id': 12,
   'type': 1,
   'name': "Henry Walker's Special",
   'link': "https://wiki.the-west.net/wiki/Henry Walker's Special"

}, {

   'id': 13,
   'type': 1,
   'name': 'Wild horses',
   'link': 'https://wiki.the-west.net/wiki/Wild horses'

}, {

   'id': 14,
   'type': 1,
   'name': "Waupee's Grandfather",
   'link': "https://wiki.the-west.net/wiki/Waupee's Grandfather"

}, {

   'id': 15,
   'type': 1,
   'name': 'Transporting prisoners',
   'link': 'https://wiki.the-west.net/wiki/Transporting prisoners'

}, {

   'id': 16,
   'type': 1,
   'name': 'Treasure hunt',
   'link': 'https://wiki.the-west.net/wiki/Treasure hunt'

}, {

   'id': 17,
   'type': 1,
   'name': 'Cleanup efforts',
   'link': 'https://wiki.the-west.net/wiki/Cleanup efforts'

}, {

   'id': 18,
   'type': 1,
   'name': "Hernando's sword",
   'link': "https://wiki.the-west.net/wiki/Hernando's sword"

}, {

   'id': 19,
   'type': 1,
   'name': "Henry's Birthday",
   'link': "https://wiki.the-west.net/wiki/Henry's Birthday"

}, {

   'id': 20,
   'type': 1,
   'name': 'The decision',
   'link': 'https://wiki.the-west.net/wiki/The decision'

}, {

   'id': 21,
   'type': 1,
   'name': 'Pony-Express',
   'link': 'https://wiki.the-west.net/wiki/Pony-Express'

}, {

   'id': 22,
   'type': 1,
   'name': 'Duel tactics',
   'link': 'https://wiki.the-west.net/wiki/Duel tactics'

}, {

   'id': 23,
   'type': 1,
   'name': 'Little things',
   'link': 'https://wiki.the-west.net/wiki/Little things'

}, {

   'id': 24,
   'type': 1,
   'name': 'Optimization of profits',
   'link': 'https://wiki.the-west.net/wiki/Optimization of profits'

}, {

   'id': 25,
   'type': 1,
   'name': 'Well organized',
   'link': 'https://wiki.the-west.net/wiki/Well organized'

}, {

   'id': 26,
   'type': 1,
   'name': 'The ring',
   'link': 'https://wiki.the-west.net/wiki/The ring'

}, {

   'id': 27,
   'type': 1,
   'name': "Kate's wedding band",
   'link': "https://wiki.the-west.net/wiki/Kate's wedding band"

}, {

   'id': 28,
   'type': 1,
   'name': 'John moves out',
   'link': 'https://wiki.the-west.net/wiki/John moves out'

}, {

   'id': 29,
   'type': 1,
   'name': 'The art thief',
   'link': 'https://wiki.the-west.net/wiki/The art thief'

}, {

   'id': 30,
   'type': 1,
   'name': 'April',
   'link': 'https://wiki.the-west.net/wiki/April'

}, {

   'id': 31,
   'type': 1,
   'name': 'Fresh tomato salad',
   'link': 'https://wiki.the-west.net/wiki/Fresh tomato salad'

}, {

   'id': 32,
   'type': 1,
   'name': 'The raid',
   'link': 'https://wiki.the-west.net/wiki/The raid'

}, {

   'id': 33,
   'type': 1,
   'name': 'Thanksgiving',
   'link': 'https://wiki.the-west.net/wiki/Thanksgiving'

}, {

   'id': 34,
   'type': 1,
   'name': 'Christmas',
   'link': 'https://wiki.the-west.net/wiki/Christmas'

}, {

   'id': 35,
   'type': 1,
   'name': 'How the festivals fall',
   'link': 'https://wiki.the-west.net/wiki/How the festivals fall'

}, {

   'id': 36,
   'type': 1,
   'name': 'Angel of love',
   'link': 'https://wiki.the-west.net/wiki/Angel of love'

}, {

   'id': 37,
   'type': 1,
   'name': 'Escape from prison',
   'link': 'https://wiki.the-west.net/wiki/Escape from prison'

}, {

   'id': 38,
   'type': 1,
   'name': 'The great journey',
   'link': 'https://wiki.the-west.net/wiki/The great journey'

}, {

   'id': 39,
   'type': 1,
   'name': 'Paths of communication',
   'link': 'https://wiki.the-west.net/wiki/Paths of communication'

}, {

   'id': 40,
   'type': 1,
   'name': "Tomorrow's headline",
   'link': "https://wiki.the-west.net/wiki/Tomorrow's headline"

}, {

   'id': 41,
   'type': 1,
   'name': "The railroad's journey of conquest",
   'link': "https://wiki.the-west.net/wiki/The railroad's journey of conquest"

}, {

   'id': 42,
   'type': 1,
   'name': 'The ghost town',
   'link': 'https://wiki.the-west.net/wiki/The ghost town'

}, {

   'id': 43,
   'type': 1,
   'name': "Valentine's Day",
   'link': "https://wiki.the-west.net/wiki/Valentine's Day"

}, {

   'id': 44,
   'type': 1,
   'name': 'Heavy labor',
   'link': 'https://wiki.the-west.net/wiki/Heavy labor'

}, {

   'id': 45,
   'type': 1,
   'name': 'The loser',
   'link': 'https://wiki.the-west.net/wiki/The loser'

}, {

   'id': 46,
   'type': 1,
   'name': 'Easter',
   'link': 'https://wiki.the-west.net/wiki/Easter'

}, {

   'id': 47,
   'type': 1,
   'name': 'Paladin',
   'link': 'https://wiki.the-west.net/wiki/Paladin'

}, {

   'id': 48,
   'type': 1,
   'name': 'Bank',
   'link': 'https://wiki.the-west.net/wiki/Bank'

}, {

   'id': 49,
   'type': 1,
   'name': 'Independence Day',
   'link': 'https://wiki.the-west.net/wiki/Independence Day'

}, {

   'id': 50,
   'type': 1,
   'name': 'Wash dirty laundry',
   'link': 'https://wiki.the-west.net/wiki/Wash dirty laundry'

}, {

   'id': 51,
   'type': 1,
   'name': 'The treasure',
   'link': 'https://wiki.the-west.net/wiki/The treasure'

}, {

   'id': 52,
   'type': 1,
   'name': 'The golden treasure',
   'link': 'https://wiki.the-west.net/wiki/The golden treasure'

}, {

   'id': 53,
   'type': 1,
   'name': 'The murder',
   'link': 'https://wiki.the-west.net/wiki/The murder'

}, {

   'id': 54,
   'type': 1,
   'name': 'It smells like a treasure',
   'link': 'https://wiki.the-west.net/wiki/It smells like a treasure'

}, {

   'id': 55,
   'type': 1,
   'name': 'Save the saloon, part 2',
   'link': 'https://wiki.the-west.net/wiki/Save the saloon, part 2'

}, {

   'id': 56,
   'type': 1,
   'name': 'Halloween',
   'link': 'https://wiki.the-west.net/wiki/Halloween'

}, {

   'id': 58,
   'type': 1,
   'name': 'The travelling circus',
   'link': 'https://wiki.the-west.net/wiki/The travelling circus'

}, {

   'id': 59,
   'type': 1,
   'name': 'Animal Spirits',
   'link': 'https://wiki.the-west.net/wiki/Animal Spirits'

}, {

   'id': 60,
   'type': 1,
   'name': 'Hope dies last',
   'link': 'https://wiki.the-west.net/wiki/Hope dies last'

}, {

   'id': 61,
   'type': 1,
   'name': 'The tribe',
   'link': 'https://wiki.the-west.net/wiki/The tribe'

}, {

   'id': 62,
   'type': 1,
   'name': 'Repeatable quests',
   'link': 'https://wiki.the-west.net/wiki/Repeatable quests'

}, {

   'id': 63,
   'type': 1,
   'name': 'The Warriors Way',
   'link': 'https://wiki.the-west.net/wiki/The Warriors Way'

}, {

   'id': 64,
   'type': 1,
   'name': 'Cowboys & Aliens',
   'link': 'https://wiki.the-west.net/wiki/Cowboys & Aliens'

}, {

   'id': 65,
   'type': 1,
   'name': 'Wasteland',
   'link': 'https://wiki.the-west.net/wiki/Wasteland'

}, {

   'id': 66,
   'type': 1,
   'name': "Hackett's Claim",
   'link': "https://wiki.the-west.net/wiki/Hackett's Claim"

}, {

   'id': 67,
   'type': 1,
   'name': 'Charlie',
   'link': 'https://wiki.the-west.net/wiki/Charlie'

}, {

   'id': 68,
   'type': 1,
   'name': 'Mexican gold',
   'link': 'https://wiki.the-west.net/wiki/Mexican gold'

}, {

   'id': 69,
   'type': 1,
   'name': 'Repeatable holiday quests',
   'link': 'https://wiki.the-west.net/wiki/Repeatable holiday quests'

}, {

   'id': 70,
   'type': 1,
   'name': 'Trail of the spirits',
   'link': 'https://wiki.the-west.net/wiki/Trail of the spirits'

}, {

   'id': 71,
   'type': 1,
   'name': 'Help for Father Brown',
   'link': 'https://wiki.the-west.net/wiki/Help for Father Brown'

}, {

   'id': 72,
   'type': 1,
   'name': 'The day laborer',
   'link': 'https://wiki.the-west.net/wiki/The day laborer'

}, {

   'id': 73,
   'type': 1,
   'name': 'The fate of the Cunninghams',
   'link': 'https://wiki.the-west.net/wiki/The fate of the Cunninghams'

}, {

   'id': 74,
   'type': 1,
   'name': 'The peacemaker',
   'link': 'https://wiki.the-west.net/wiki/The peacemaker'

}, {

   'id': 75,
   'type': 1,
   'name': 'The freedom fighter',
   'link': 'https://wiki.the-west.net/wiki/The freedom fighter'

}, {

   'id': 76,
   'type': 1,
   'name': 'Fanta',
   'link': 'https://wiki.the-west.net/wiki/Fanta'

}, {

   'id': 77,
   'type': 1,
   'name': 'A holiday spook',
   'link': 'https://wiki.the-west.net/wiki/A holiday spook'

}, {

   'id': 78,
   'type': 1,
   'name': 'The easter egg',
   'link': 'https://wiki.the-west.net/wiki/The easter egg'

}, {

   'id': 79,
   'type': 1,
   'name': 'The West has a birthday!',
   'link': 'https://wiki.the-west.net/wiki/The West has a birthday!'

}, {

   'id': 80,
   'type': 1,
   'name': 'Attack of the Wogons',
   'link': 'https://wiki.the-west.net/wiki/Attack of the Wogons'

}, {

   'id': 81,
   'type': 1,
   'name': 'Anti diet week',
   'link': 'https://wiki.the-west.net/wiki/Anti diet week'

}, {

   'id': 82,
   'type': 1,
   'name': 'Drama Queens',
   'link': 'https://wiki.the-west.net/wiki/Drama Queens'

}, {

   'id': 83,
   'type': 1,
   'name': 'One hand washes the other',
   'link': 'https://wiki.the-west.net/wiki/One hand washes the other'

}, {

   'id': 84,
   'type': 1,
   'name': 'The big performance',
   'link': 'https://wiki.the-west.net/wiki/The big performance'

}, {

   'id': 85,
   'type': 1,
   'name': 'The six bandidos',
   'link': 'https://wiki.the-west.net/wiki/The six bandidos'

}, {

   'id': 86,
   'type': 1,
   'name': 'Education',
   'link': 'https://wiki.the-west.net/wiki/Education'

}, {

   'id': 87,
   'type': 1,
   'name': 'Jobs',
   'link': 'https://wiki.the-west.net/wiki/Jobs'

}, {

   'id': 88,
   'type': 1,
   'name': 'The lost treasure map',
   'link': 'https://wiki.the-west.net/wiki/The lost treasure map'

}, {

   'id': 89,
   'type': 1,
   'name': 'Mentor',
   'link': 'https://wiki.the-west.net/wiki/Mentor'

}, {

   'id': 90,
   'type': 1,
   'name': 'Fort battle',
   'link': 'https://wiki.the-west.net/wiki/Fort battle'

}, {

   'id': 91,
   'type': 1,
   'name': "Waupee's Grandfather",
   'link': "https://wiki.the-west.net/wiki/Waupee's Grandfather"

}, {

   'id': 92,
   'type': 1,
   'name': "Christopher's parade",
   'link': "https://wiki.the-west.net/wiki/Christopher's parade"

}, {

   'id': 93,
   'type': 1,
   'name': 'The Outpost',
   'link': 'https://wiki.the-west.net/wiki/The Outpost'

}, {

   'id': 94,
   'type': 1,
   'name': 'Pinkerton Agency',
   'link': 'https://wiki.the-west.net/wiki/Pinkerton Agency'

}, {

   'id': 95,
   'type': 1,
   'name': 'Travelling Fair',
   'link': 'https://wiki.the-west.net/wiki/Travelling Fair'

}, {

   'id': 96,
   'type': 1,
   'name': 'New wasteland',
   'link': 'https://wiki.the-west.net/wiki/New wasteland'

}, {

   'id': 97,
   'type': 1,
   'name': 'Friendship week',
   'link': 'https://wiki.the-west.net/wiki/Friendship week'

}, {

   'id': 98,
   'type': 1,
   'name': "Dead Man's Hand",
   'link': "https://wiki.the-west.net/wiki/Dead Man's Hand"

}, {

   'id': 99,
   'type': 1,
   'name': 'The transporter',
   'link': 'https://wiki.the-west.net/wiki/The transporter'

}, {

   'id': 100,
   'type': 1,
   'name': 'Black Mountains',
   'link': 'https://wiki.the-west.net/wiki/Black Mountains'

}, {

   'id': 101,
   'type': 1,
   'name': 'Game of life',
   'link': 'https://wiki.the-west.net/wiki/Game of life'

}, {

   'id': 102,
   'type': 1,
   'name': 'The farm',
   'link': 'https://wiki.the-west.net/wiki/The farm'

}, {

   'id': 103,
   'type': 1,
   'name': 'The avenger',
   'link': 'https://wiki.the-west.net/wiki/The avenger'

}, {

   'id': 104,
   'type': 1,
   'name': 'Wild Bunch',
   'link': 'https://wiki.the-west.net/wiki/Wild Bunch'

}, {

   'id': 105,
   'type': 1,
   'name': 'Call to adventure',
   'link': 'https://wiki.the-west.net/wiki/Call to adventure'

}, {

   'id': 106,
   'type': 1,
   'name': 'Advanced crafting',
   'link': 'https://wiki.the-west.net/wiki/Advanced crafting'

}, {

   'id': 107,
   'type': 1,
   'name': 'A pawful of kittens',
   'link': 'https://wiki.the-west.net/wiki/A pawful of kittens'

}, {

   'id': 108,
   'type': 1,
   'name': 'Labor Day',
   'link': 'https://wiki.the-west.net/wiki/Labor Day'

}, {

   'id': 109,
   'type': 1,
   'name': 'No water in Newport',
   'link': 'https://wiki.the-west.net/wiki/No water in Newport'

}, {

   'id': 110,
   'type': 1,
   'name': 'Letters from Nowhere',
   'link': 'https://wiki.the-west.net/wiki/Letters from Nowhere'

}, {

   'id': 111,
   'type': 1,
   'name': 'Down with Fort Mencer',
   'link': 'https://wiki.the-west.net/wiki/Down with Fort Mencer'

}, {

   'id': 112,
   'type': 1,
   'name': 'The North, the South and the brunette',
   'link': 'https://wiki.the-west.net/wiki/The North, the South and the brunette'

}, {

   'id': 113,
   'type': 1,
   'name': 'A Western Nightmare',
   'link': 'https://wiki.the-west.net/wiki/A Western Nightmare'

}, {

   'id': 114,
   'type': 1,
   'name': 'Playing against the rules',
   'link': 'https://wiki.the-west.net/wiki/Playing against the rules'

}, {

   'id': 115,
   'type': 1,
   'name': 'Once upon a time in "The West"',
   'link': 'https://wiki.the-west.net/wiki/Once upon a time in "The West"'

}, {

   'id': 116,
   'type': 1,
   'name': 'The perfect heist',
   'link': 'https://wiki.the-west.net/wiki/The perfect heist'

}, {

   'id': 117,
   'type': 1,
   'name': 'The right and the left hand of the devil',
   'link': 'https://wiki.the-west.net/wiki/The right and the left hand of the devil'

}, {

   'id': 118,
   'type': 1,
   'name': 'Unchained',
   'link': 'https://wiki.the-west.net/wiki/Unchained'

}, {

   'id': 119,
   'type': 1,
   'name': 'Call of Zuma',
   'link': 'https://wiki.the-west.net/wiki/Call of Zuma'

}, {

   'id': 120,
   'type': 1,
   'name': 'Lone Ranger',
   'link': 'https://wiki.the-west.net/wiki/Lone Ranger'

}, {

   'id': 121,
   'type': 1,
   'name': 'The assassination of Jesse James',
   'link': 'https://wiki.the-west.net/wiki/The assassination of Jesse James'

}, {

   'id': 122,
   'type': 1,
   'name': "New Year's Eve",
   'link': "https://wiki.the-west.net/wiki/New Year's Eve"

}, {

   'id': 123,
   'type': 1,
   'name': 'Das Netz der Zukunft',
   'link': 'https://wiki.the-west.net/wiki/Das Netz der Zukunft'

}, {

   'id': 124,
   'type': 1,
   'name': 'Gold rush',
   'link': 'https://wiki.the-west.net/wiki/Gold rush'

}, {

   'id': 125,
   'type': 1,
   'name': 'Love is in the air',
   'link': 'https://wiki.the-west.net/wiki/Love is in the air'

}, {

   'id': 126,
   'type': 1,
   'name': "Gone with the Valentine's Day",
   'link': "https://wiki.the-west.net/wiki/Gone with the Valentine's Day"

}, {

   'id': 127,
   'type': 1,
   'name': 'Brewing Bad',
   'link': 'https://wiki.the-west.net/wiki/Brewing Bad'

}, {

   'id': 128,
   'type': 1,
   'name': 'Ghost cluster',
   'link': 'https://wiki.the-west.net/wiki/Ghost cluster'

}, {

   'id': 129,
   'type': 1,
   'name': 'Tombstone ruckus',
   'link': 'https://wiki.the-west.net/wiki/Tombstone ruckus'

}, {

   'id': 130,
   'type': 1,
   'name': 'Relentless',
   'link': 'https://wiki.the-west.net/wiki/Relentless'

}, {

   'id': 131,
   'type': 1,
   'name': 'Desert Treasures',
   'link': 'https://wiki.the-west.net/wiki/Desert Treasures'

}, {

   'id': 132,
   'type': 1,
   'name': 'Day of the Dead',
   'link': 'https://wiki.the-west.net/wiki/Day of the Dead'

}, {

   'id': 133,
   'type': 1,
   'name': 'Night watch',
   'link': 'https://wiki.the-west.net/wiki/Night watch'

}, {

   'id': 134,
   'type': 1,
   'name': 'Giant of the ocean',
   'link': 'https://wiki.the-west.net/wiki/Giant of the ocean'

}, {

   'id': 135,
   'type': 1,
   'name': 'Everything the light touches',
   'link': 'https://wiki.the-west.net/wiki/Everything the light touches'

}, {

   'id': 136,
   'type': 1,
   'name': 'Christmas spirit',
   'link': 'https://wiki.the-west.net/wiki/Christmas spirit'

}, {

   'id': 137,
   'type': 1,
   'name': 'Christmas sale',
   'link': 'https://wiki.the-west.net/wiki/Christmas sale'

}, {

   'id': 138,
   'type': 1,
   'name': 'Ruffians of Tombstone',
   'link': 'https://wiki.the-west.net/wiki/Ruffians of Tombstone'

}, {

   'id': 139,
   'type': 1,
   'name': 'One foolish Romeo',
   'link': 'https://wiki.the-west.net/wiki/One foolish Romeo'

}, {

   'id': 140,
   'type': 1,
   'name': 'Upgrading for Beginners',
   'link': 'https://wiki.the-west.net/wiki/Upgrading for Beginners'

}, {

   'id': 141,
   'type': 1,
   'name': 'Finding Mr. Easter Bunny',
   'link': 'https://wiki.the-west.net/wiki/Finding Mr. Easter Bunny'

}, {

   'id': 142,
   'type': 1,
   'name': 'A lamb in the forest',
   'link': 'https://wiki.the-west.net/wiki/A lamb in the forest'

}, {

   'id': 143,
   'type': 1,
   'name': 'Giant of the land',
   'link': 'https://wiki.the-west.net/wiki/Giant of the land'

}, {

   'id': 144,
   'type': 1,
   'name': 'Dark is the night',
   'link': 'https://wiki.the-west.net/wiki/Dark is the night'

}, {

   'id': 145,
   'type': 1,
   'name': 'Black treasure (Part 1)',
   'link': 'https://wiki.the-west.net/wiki/Black treasure (Part 1)'

}, {

   'id': 146,
   'type': 1,
   'name': 'The history of The West',
   'link': 'https://wiki.the-west.net/wiki/The history of The West'

}, {

   'id': 147,
   'type': 1,
   'name': 'Life of a Retiree',
   'link': 'https://wiki.the-west.net/wiki/Life of a Retiree'

}, {

   'id': 148,
   'type': 1,
   'name': 'Mission un-passible',
   'link': 'https://wiki.the-west.net/wiki/Mission un-passible'

}, {

   'id': 149,
   'type': 1,
   'name': 'West Point',
   'link': 'https://wiki.the-west.net/wiki/West Point'

}, {

   'id': 150,
   'type': 1,
   'name': 'Detective needed',
   'link': 'https://wiki.the-west.net/wiki/Detective needed'

}, {

   'id': 151,
   'type': 1,
   'name': 'Black treasure (Part 2)',
   'link': 'https://wiki.the-west.net/wiki/Black treasure (Part 2)'

}, {

   'id': 152,
   'type': 1,
   'name': 'The Colcord story',
   'link': 'https://wiki.the-west.net/wiki/The Colcord story'

}, {

   'id': 153,
   'type': 1,
   'name': 'The campaign',
   'link': 'https://wiki.the-west.net/wiki/The campaign'

}, {

   'id': 154,
   'type': 1,
   'name': 'Business idea',
   'link': 'https://wiki.the-west.net/wiki/Business idea'

}, {

   'id': 155,
   'type': 1,
   'name': 'Oktoberfest is coming',
   'link': 'https://wiki.the-west.net/wiki/Oktoberfest is coming'

}, {

   'id': 156,
   'type': 1,
   'name': 'Space - The New Frontier',
   'link': 'https://wiki.the-west.net/wiki/Space - The New Frontier'

}, {

   'id': 157,
   'type': 1,
   'name': 'The Wright brothers',
   'link': 'https://wiki.the-west.net/wiki/The Wright brothers'

}, {

   'id': 158,
   'type': 1,
   'name': 'The three-day fiesta',
   'link': 'https://wiki.the-west.net/wiki/The three-day fiesta'

}, {

   'id': 159,
   'type': 1,
   'name': 'Summer time',
   'link': 'https://wiki.the-west.net/wiki/Summer time'

}, {

   'id': 160,
   'type': 1,
   'name': 'Renew the spirit, Part 1',
   'link': 'https://wiki.the-west.net/wiki/Renew the spirit, Part 1'

}, {

   'id': 161,
   'type': 1,
   'name': 'The Last Frontier',
   'link': 'https://wiki.the-west.net/wiki/The Last Frontier'

}, {

   'id': 162,
   'type': 1,
   'name': 'Incredible journey',
   'link': 'https://wiki.the-west.net/wiki/Incredible journey'

}, {

   'id': 163,
   'type': 1,
   'name': 'Ded Moroz',
   'link': 'https://wiki.the-west.net/wiki/Ded Moroz'

}, {

   'id': 164,
   'type': 1,
   'name': 'New worlds',
   'link': 'https://wiki.the-west.net/wiki/New worlds'

}, {

   'id': 165,
   'type': 1,
   'name': 'Renew the spirit, Part 2',
   'link': 'https://wiki.the-west.net/wiki/Renew the spirit, Part 2'

}, {

   'id': 166,
   'type': 1,
   'name': 'Easter basket',
   'link': 'https://wiki.the-west.net/wiki/Easter basket'

}, {

   'id': 167,
   'type': 1,
   'name': 'A strange animal',
   'link': 'https://wiki.the-west.net/wiki/A strange animal'

}, {

   'id': 168,
   'type': 1,
   'name': '9th birthday party',
   'link': 'https://wiki.the-west.net/wiki/9th birthday party'

}, {

   'id': 169,
   'type': 1,
   'name': 'Big Football Match',
   'link': 'https://wiki.the-west.net/wiki/Big Football Match'

}, {

   'id': 170,
   'type': 1,
   'name': '100. Ausgabe der TWTimes',
   'link': 'https://wiki.the-west.net/wiki/100. Ausgabe der TWTimes'

}, {

   'id': 171,
   'type': 1,
   'name': 'Sailor',
   'link': 'https://wiki.the-west.net/wiki/Sailor'

}, {

   'id': 172,
   'type': 1,
   'name': 'Betsy Ross flag',
   'link': 'https://wiki.the-west.net/wiki/Betsy Ross flag'

}, {

   'id': 173,
   'type': 1,
   'name': 'Prison Brothers',
   'link': 'https://wiki.the-west.net/wiki/Prison Brothers'

}, {

   'id': 174,
   'type': 1,
   'name': 'Oktoberfest in the USA',
   'link': 'https://wiki.the-west.net/wiki/Oktoberfest in the USA'

}, {

   'id': 175,
   'type': 1,
   'name': 'Lonesome Cowboy',
   'link': 'https://wiki.the-west.net/wiki/Lonesome Cowboy'

}, {

   'id': 176,
   'type': 1,
   'name': 'Pumpkin hunt',
   'link': 'https://wiki.the-west.net/wiki/Pumpkin hunt'

}, {

   'id': 177,
   'type': 1,
   'name': 'Western Friday',
   'link': 'https://wiki.the-west.net/wiki/Western Friday'

}, {

   'id': 178,
   'type': 1,
   'name': 'Magic World',
   'link': 'https://wiki.the-west.net/wiki/Magic World'

}, {

   'id': 179,
   'type': 1,
   'name': 'Winter Treasure',
   'link': 'https://wiki.the-west.net/wiki/Winter Treasure'

}, {

   'id': 180,
   'type': 1,
   'name': 'The provincial doctor',
   'link': 'https://wiki.the-west.net/wiki/The provincial doctor'

}, {

   'id': 181,
   'type': 1,
   'name': 'Carnival in the Wild West',
   'link': 'https://wiki.the-west.net/wiki/Carnival in the Wild West'

}, {

   'id': 182,
   'type': 1,
   'name': 'Easter Egg Hunt',
   'link': 'https://wiki.the-west.net/wiki/Easter Egg Hunt'

}, {

   'id': 183,
   'type': 1,
   'name': 'The legendary Golden Colt',
   'link': 'https://wiki.the-west.net/wiki/The legendary Golden Colt'

}, {

   'id': 184,
   'type': 1,
   'name': 'Secrets of The West',
   'link': 'https://wiki.the-west.net/wiki/Secrets of The West'

}, {

   'id': 185,
   'type': 1,
   'name': 'The legendary Golden Sabre',
   'link': 'https://wiki.the-west.net/wiki/The legendary Golden Sabre'

}, {

   'id': 186,
   'type': 1,
   'name': 'Soccer event',
   'link': 'https://wiki.the-west.net/wiki/Soccer event'

}, {

   'id': 187,
   'type': 1,
   'name': 'A dream about the war',
   'link': 'https://wiki.the-west.net/wiki/A dream about the war'

}, {

   'id': 188,
   'type': 1,
   'name': 'The legend of the golden rifle',
   'link': 'https://wiki.the-west.net/wiki/The legend of the golden rifle'

}, {

   'id': 189,
   'type': 1,
   'name': 'The Long Walk',
   'link': 'https://wiki.the-west.net/wiki/The Long Walk'

}, {

   'id': 190,
   'type': 1,
   'name': 'Henry on vacation',
   'link': 'https://wiki.the-west.net/wiki/Henry on vacation'

}, {

   'id': 191,
   'type': 1,
   'name': 'Summer Dream',
   'link': 'https://wiki.the-west.net/wiki/Summer Dream'

}, {

   'id': 192,
   'type': 1,
   'name': 'The Mountain Farmer and the Shepherdess',
   'link': 'https://wiki.the-west.net/wiki/The Mountain Farmer and the Shepherdess'

}, {

   'id': 193,
   'type': 1,
   'name': 'The Headless Horseman',
   'link': 'https://wiki.the-west.net/wiki/The Headless Horseman'

}, {

   'id': 194,
   'type': 1,
   'name': 'The first cowgirl',
   'link': 'https://wiki.the-west.net/wiki/The first cowgirl'

}, {

   'id': 195,
   'type': 1,
   'name': "Santa's companions",
   'link': "https://wiki.the-west.net/wiki/Santa's companions"

}, {

   'id': 196,
   'type': 1,
   'name': 'Locked out',
   'link': 'https://wiki.the-west.net/wiki/Locked out'

}, {

   'id': 197,
   'type': 1,
   'name': 'The ties that bind',
   'link': 'https://wiki.the-west.net/wiki/The ties that bind'

}, {

   'id': 198,
   'type': 1,
   'name': 'Secret Love',
   'link': 'https://wiki.the-west.net/wiki/Secret Love'

}, {

   'id': 199,
   'type': 1,
   'name': 'Burning spirits of the past!',
   'link': 'https://wiki.the-west.net/wiki/Burning spirits of the past!'

}, {

   'id': 200,
   'type': 1,
   'name': 'The Myth',
   'link': 'https://wiki.the-west.net/wiki/The Myth'

}, {

   'id': 201,
   'type': 1,
   'name': 'Ook!',
   'link': 'https://wiki.the-west.net/wiki/Ook!'

}, {

   'id': 202,
   'type': 1,
   'name': 'The legend of seven sisters',
   'link': 'https://wiki.the-west.net/wiki/The legend of seven sisters'

}, {

   'id': 203,
   'type': 1,
   'name': 'Crafting 2.0',
   'link': 'https://wiki.the-west.net/wiki/Crafting 2.0'

}, {

   'id': 204,
   'type': 1,
   'name': 'Little Black Bear',
   'link': 'https://wiki.the-west.net/wiki/Little Black Bear'

}, {

   'id': 205,
   'type': 1,
   'name': 'The hidden letters',
   'link': 'https://wiki.the-west.net/wiki/The hidden letters'

}, {

   'id': 206,
   'type': 1,
   'name': 'The Independence Day parade',
   'link': 'https://wiki.the-west.net/wiki/The Independence Day parade'

}, {

   'id': 207,
   'type': 1,
   'name': 'Paul The Great Paladin',
   'link': 'https://wiki.the-west.net/wiki/Paul The Great Paladin'

}, {

   'id': 208,
   'type': 1,
   'name': 'Harvest Time',
   'link': 'https://wiki.the-west.net/wiki/Harvest Time'

}, {

   'id': 209,
   'type': 1,
   'name': 'Crafting skills pay off',
   'link': 'https://wiki.the-west.net/wiki/Crafting skills pay off'

}, {

   'id': 210,
   'type': 1,
   'name': 'Save Oktoberfest',
   'link': 'https://wiki.the-west.net/wiki/Save Oktoberfest'

}, {

   'id': 211,
   'type': 1,
   'name': 'Something strange is happening',
   'link': 'https://wiki.the-west.net/wiki/Something strange is happening'

}, {

   'id': 212,
   'type': 1,
   'name': 'Pumpkin hunt 2020',
   'link': 'https://wiki.the-west.net/wiki/Pumpkin hunt 2020'

}, {

   'id': 213,
   'type': 1,
   'name': 'The one without the name',
   'link': 'https://wiki.the-west.net/wiki/The one without the name'

}, {

   'id': 214,
   'type': 1,
   'name': 'A holiday hot potato game',
   'link': 'https://wiki.the-west.net/wiki/A holiday hot potato game'

}, {

   'id': 215,
   'type': 1,
   'name': 'The snowstorm',
   'link': 'https://wiki.the-west.net/wiki/The snowstorm'

}, {

   'id': 216,
   'type': 1,
   'name': "Together 'til the end!",
   'link': "https://wiki.the-west.net/wiki/Together 'til the end!"

}, {

   'id': 217,
   'type': 1,
   'name': 'Gold coins',
   'link': 'https://wiki.the-west.net/wiki/Gold coins'

}, {

   'id': 218,
   'type': 1,
   'name': 'The new train station',
   'link': 'https://wiki.the-west.net/wiki/The new train station'

}, {

   'id': 219,
   'type': 1,
   'name': 'The West 12 anniversary',
   'link': 'https://wiki.the-west.net/wiki/The West 12 anniversary'

}, {

   'id': 220,
   'type': 1,
   'name': 'Trade exchange',
   'link': 'https://wiki.the-west.net/wiki/Trade exchange'

}, {

   'id': 221,
   'type': 1,
   'name': 'The cake baking event',
   'link': 'https://wiki.the-west.net/wiki/The cake baking event'

}, {

   'id': 222,
   'type': 1,
   'name': 'Crafting mini-event',
   'link': 'https://wiki.the-west.net/wiki/Crafting mini-event'

}, {

   'id': 223,
   'type': 1,
   'name': 'Soccer event - repeatable quests',
   'link': 'https://wiki.the-west.net/wiki/Soccer event - repeatable quests'

}, {

   'id': 224,
   'type': 1,
   'name': 'Became a referee',
   'link': 'https://wiki.the-west.net/wiki/Became a referee'

}, {

   'id': 225,
   'type': 1,
   'name': 'Independence Day preparations',
   'link': 'https://wiki.the-west.net/wiki/Independence Day preparations'

}, {

   'id': 226,
   'type': 1,
   'name': 'Harvest festival preparation',
   'link': 'https://wiki.the-west.net/wiki/Harvest festival preparation'

}, {

   'id': 227,
   'type': 1,
   'name': 'Harvest Event daily quests',
   'link': 'https://wiki.the-west.net/wiki/Harvest Event daily quests'

}, {

   'id': 228,
   'type': 1,
   'name': 'A Shipment from Germany',
   'link': 'https://wiki.the-west.net/wiki/A Shipment from Germany'

}, {

   'id': 229,
   'type': 1,
   'name': 'Celebrating life',
   'link': 'https://wiki.the-west.net/wiki/Celebrating life'

}, {

   'id': 230,
   'type': 1,
   'name': 'Double trouble',
   'link': 'https://wiki.the-west.net/wiki/Double trouble'

}, {

   'id': 231,
   'type': 1,
   'name': 'Gift Hunt 2020',
   'link': 'https://wiki.the-west.net/wiki/Gift Hunt 2020'

}, {

   'id': 232,
   'type': 1,
   'name': 'Holiday Event repeatable quests',
   'link': 'https://wiki.the-west.net/wiki/Holiday Event repeatable quests'

}, {

   'id': 233,
   'type': 1,
   'name': 'Unusual winter sport',
   'link': 'https://wiki.the-west.net/wiki/Unusual winter sport'

}, {

   'id': 234,
   'type': 1,
   'name': 'Tombstone love story',
   'link': 'https://wiki.the-west.net/wiki/Tombstone love story'

}, {

   'id': 235,
   'type': 1,
   'name': 'St. Patrick 2021',
   'link': 'https://wiki.the-west.net/wiki/St. Patrick 2021'

}, {

   'id': 236,
   'type': 1,
   'name': 'St. Patrick Day 2021 - repeatable quests',
   'link': 'https://wiki.the-west.net/wiki/St. Patrick Day 2021 - repeatable quests'

}, {

   'id': 237,
   'type': 1,
   'name': 'Easter Showdown Collection Set Quests',
   'link': 'https://wiki.the-west.net/wiki/Easter Showdown Collection Set Quests'

}, {

   'id': 238,
   'type': 1,
   'name': 'Ringo is in the Town',
   'link': 'https://wiki.the-west.net/wiki/Ringo is in the Town'

}, {

   'id': 239,
   'type': 1,
   'name': 'Ringo is in the Town',
   'link': 'https://wiki.the-west.net/wiki/Ringo is in the Town'

}, {

   'id': 240,
   'type': 1,
   'name': 'Contest for an innovative dessert',
   'link': 'https://wiki.the-west.net/wiki/Contest for an innovative dessert'

}, {

   'id': 241,
   'type': 1,
   'name': 'Cooperation pays off',
   'link': 'https://wiki.the-west.net/wiki/Cooperation pays off'

}, {

   'id': 242,
   'type': 1,
   'name': 'Time for tea',
   'link': 'https://wiki.the-west.net/wiki/Time for tea'

}, {

   'id': 243,
   'type': 1,
   'name': 'Harvest Time',
   'link': 'https://wiki.the-west.net/wiki/Harvest Time'

}, {

   'id': 245,
   'type': 1,
   'name': 'Life of the harvesters',
   'link': 'https://wiki.the-west.net/wiki/Life of the harvesters'

}, {

   'id': 246,
   'type': 1,
   'name': 'Oktoberfest 2021',
   'link': 'https://wiki.the-west.net/wiki/Oktoberfest 2021'

}, {

   'id': 247,
   'type': 1,
   'name': 'Special Quests',
   'link': 'https://wiki.the-west.net/wiki/Special Quests'

}, {

   'id': 248,
   'type': 1,
   'name': "Ron's visit",
   'link': "https://wiki.the-west.net/wiki/Ron's visit"

}, {

   'id': 249,
   'type': 1,
   'name': 'Pumpkin Hunt 2021',
   'link': 'https://wiki.the-west.net/wiki/Pumpkin Hunt 2021'

}, {

   'id': 250,
   'type': 1,
   'name': 'Holiday story',
   'link': 'https://wiki.the-west.net/wiki/Holiday story'

}, {

   'id': 251,
   'type': 1,
   'name': "Valentine's day repeatable quests",
   'link': "https://wiki.the-west.net/wiki/Valentine's day repeatable quests"

}, {

   'id': 252,
   'type': 1,
   'name': 'First winter',
   'link': 'https://wiki.the-west.net/wiki/First winter'

}, {

   'id': 253,
   'type': 1,
   'name': "Angus' love",
   'link': "https://wiki.the-west.net/wiki/Angus' love"

}, {

   'id': 254,
   'type': 1,
   'name': 'Where is the map?',
   'link': 'https://wiki.the-west.net/wiki/Where is the map?'

}, {

   'id': 255,
   'type': 1,
   'name': 'Easter breakfast',
   'link': 'https://wiki.the-west.net/wiki/Easter breakfast'

}, {

   'id': 256,
   'type': 1,
   'name': 'Special drink',
   'link': 'https://wiki.the-west.net/wiki/Special drink'

}, {

   'id': 257,
   'type': 1,
   'name': 'Everyone is ill',
   'link': 'https://wiki.the-west.net/wiki/Everyone is ill'

}, {

   'id': 258,
   'type': 1,
   'name': 'Unusual harvest time',
   'link': 'https://wiki.the-west.net/wiki/Unusual harvest time'

}, {

   'id': 259,
   'type': 1,
   'name': 'Special Oktoberfest',
   'link': 'https://wiki.the-west.net/wiki/Special Oktoberfest'

}, {

   'id': 260,
   'type': 1,
   'name': 'Wedding anniversary',
   'link': 'https://wiki.the-west.net/wiki/Wedding anniversary'

}, {

   'id': 261,
   'type': 1,
   'name': 'Is that a dream?',
   'link': 'https://wiki.the-west.net/wiki/Is that a dream?'

}, {

   'id': 262,
   'type': 1,
   'name': 'Catch the thief!',
   'link': 'https://wiki.the-west.net/wiki/Catch the thief!'

}, {

   'id': 263,
   'type': 1,
   'name': 'A guest from Columbia',
   'link': 'https://wiki.the-west.net/wiki/A guest from Columbia'

}, {

   'id': 264,
   'type': 1,
   'name': 'Do you know pumpkins well?',
   'link': 'https://wiki.the-west.net/wiki/Do you know pumpkins well?'

}, {

   'id': 265,
   'type': 1,
   'name': 'Save the gifts',
   'link': 'https://wiki.the-west.net/wiki/Save the gifts'

}, {

   'id': 266,
   'type': 1,
   'name': 'Winter Competitions',
   'link': 'https://wiki.the-west.net/wiki/Winter Competitions'

}, {

   'id': 267,
   'type': 1,
   'name': "Maya's fiancé",
   'link': "https://wiki.the-west.net/wiki/Maya's fiancé"

}, {

   'id': 268,
   'type': 1,
   'name': 'Non-premium world',
   'link': 'https://wiki.the-west.net/wiki/Non-premium world'

}, {

   'id': 269,
   'type': 1,
   'name': 'New Éire items',
   'link': 'https://wiki.the-west.net/wiki/New Éire items'

}, {

   'id': 270,
   'type': 1,
   'name': 'A new egg-hunting tradition',
   'link': 'https://wiki.the-west.net/wiki/A new egg-hunting tradition'

}, {

   'id': 271,
   'type': 1,
   'name': 'TS crafting quests',
   'link': 'https://wiki.the-west.net/wiki/TS crafting quests'

}, {

   'id': 272,
   'type': 1,
   'name': 'Birthday cake',
   'link': 'https://wiki.the-west.net/wiki/Birthday cake'

}, {

   'id': 273,
   'type': 1,
   'name': 'The best memory',
   'link': 'https://wiki.the-west.net/wiki/The best memory'

}, {

   'id': 274,
   'type': 1,
   'name': 'The Story of Nizhoni and Winston',
   'link': 'https://wiki.the-west.net/wiki/The Story of Nizhoni and Winston'

}, {

   'id': 275,
   'type': 1,
   'name': "Fort's story",
   'link': "https://wiki.the-west.net/wiki/Fort's story"

}, {

   'id': 276,
   'type': 1,
   'name': 'Hunting season',
   'link': 'https://wiki.the-west.net/wiki/Hunting season'

}, {

   'id': 277,
   'type': 1,
   'name': 'A brief story of explosives',
   'link': 'https://wiki.the-west.net/wiki/A brief story of explosives'

}, {

   'id': 278,
   'type': 1,
   'name': 'Indian celebrations',
   'link': 'https://wiki.the-west.net/wiki/Indian celebrations'

}, {

   'id': 279,
   'type': 1,
   'name': 'The evil plans of the bandits',
   'link': 'https://wiki.the-west.net/wiki/The evil plans of the bandits'

}, {

   'id': 280,
   'type': 1,
   'name': 'Boring harvest time',
   'link': 'https://wiki.the-west.net/wiki/Boring harvest time'

},{

   'id': 281,
   'type': 1,
   'name': 'Henry\'s garden',
   'link': 'https://wiki.the-west.net/wiki/Henry%27s_garden'

},{

   'id': 282,
   'type': 1,
   'name': 'Heřman\'s visit',
   'link': 'https://wiki.the-west.net/wiki/Heřman%27s_visit'

},{

   'id': 283,
   'type': 1,
   'name': 'Trapper\'s history',
   'link': 'https://wiki.the-west.net/wiki/Trapper%27s_history'

},{

   'id': 284,
   'type': 1,
   'name': 'The Sinister Road: the Nine Levels of Mictlān',
   'link': 'https://wiki.the-west.net/wiki/The_Sinister_Road:_the_Nine_Levels_of_Mictlān'

},{

   'id': 285,
   'type': 1,
   'name': 'God forgives ...',
   'link': 'https://wiki.the-west.net/wiki/God_forgives_...'

},{

   'id': 286,
   'type': 1,
   'name': 'What happened in the field?',
   'link': 'https://wiki.the-west.net/wiki/What_happened_in_the_field'

},{

   'id': 287,
   'type': 1,
   'name': 'Gifts and clues',
   'link': 'https://wiki.the-west.net/wiki/Gifts_and_clues'

},{

   'id': 288,
   'type': 1,
   'name': 'Winter Festival',
   'link': 'https://wiki.the-west.net/wiki/Winter_Festival'

},{

   'id': 289,
   'type': 1,
   'name': 'Gambling',
   'link': 'https://wiki.the-west.net/wiki/Gambling'

},{

   'id': 290,
   'type': 1,
   'name': 'Love for life',
   'link': 'https://wiki.the-west.net/wiki/Love_for_life'

},{

   'id': 291,
   'type': 1,
   'name': 'Panem et venenum',
   'link': 'https://wiki.the-west.net/wiki/Panem_et_venenum'

},{

   'id': 294,
   'type': 1,
   'name': 'Searching for a cure',
   'link': 'https://wiki.the-west.net/wiki/Searching_for_a_cure'

},{

   'id': 295,
   'type': 1,
   'name': 'Water splashing tradition',
   'link': 'https://wiki.the-west.net/wiki/Water_splashing_tradition'

},{

   'id': 296,
   'type': 1,
   'name': 'Searching for the culprit',
   'link': 'https://wiki.the-west.net/wiki/Searching_for_the_culprit'

},{

   'id': 297,
   'type': 1,
   'name': 'The missing explorer',
   'link': 'https://wiki.the-west.net/wiki/The_missing_explorer'

},{

   'id': 298,
   'type': 1,
   'name': 'Searching for the culprit part 2',
   'link': 'https://wiki.the-west.net/wiki/Searching_for_the_culprit_part_2'

},{

   'id': 299,
   'type': 1,
   'name': '16th Birthday',
   'link': 'https://wiki.the-west.net/wiki/16th_Birthday'

},{

   'id': 300,
   'type': 1,
   'name': 'The best craftsman',
   'link': 'https://wiki.the-west.net/wiki/The_best_craftsman'

},{

   'id': 301,
   'type': 1,
   'name': 'Visiting Indian village',
   'link': 'https://wiki.the-west.net/wiki/Visiting_Indian_village'

},{

   'id': 302,
   'type': 1,
   'name': 'Maya\'s unusual hobby',
   'link': 'https://wiki.the-west.net/wiki/Maya%27s_unusual_hobby'

},{

   'id': 303,
   'type': 1,
   'name': 'Danish tradition',
   'link': 'https://wiki.the-west.net/wiki/Danish_tradition'

},{

   'id': 2000,
   'type': 2,
   'name': 'Day of the Dead (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Day of the Dead (repeatable)'

}, {

   'id': 2001,
   'type': 2,
   'name': "Gone with the Valentine's Day (repeatable)",
   'link': "https://wiki.the-west.net/wiki/Gone with the Valentine's Day (repeatable)"

}, {

   'id': 2002,
   'type': 2,
   'name': 'Repeatable holiday quests (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Repeatable holiday quests (repeatable)'

}, {

   'id': 2003,
   'type': 2,
   'name': 'One foolish Romeo (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/One foolish Romeo (repeatable)'

}, {

   'id': 2004,
   'type': 2,
   'name': 'Love is in the air (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Love is in the air (repeatable)'

}, {

   'id': 2005,
   'type': 2,
   'name': 'West Point (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/West Point (repeatable)'

}, {

   'id': 2006,
   'type': 2,
   'name': 'Oktoberfest is coming (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Oktoberfest is coming (repeatable)'

}, {

   'id': 2007,
   'type': 2,
   'name': 'The three-day fiesta (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/The three-day fiesta (repeatable)'

}, {

   'id': 2008,
   'type': 2,
   'name': 'Ded Moroz (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Ded Moroz (repeatable)'

}, {

   'id': 2009,
   'type': 2,
   'name': 'Easter basket (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Easter basket (repeatable)'

}, {

   'id': 2010,
   'type': 2,
   'name': 'The provincial doctor (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/The provincial doctor (repeatable)'

}, {

   'id': 2011,
   'type': 2,
   'name': 'Brewing Bad (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Brewing Bad (repeatable)'

}, {

   'id': 2012,
   'type': 2,
   'name': 'Christmas (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Christmas (repeatable)'

}, {

   'id': 2013,
   'type': 2,
   'name': 'Thanksgiving (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Thanksgiving (repeatable)'

}, {

   'id': 2014,
   'type': 2,
   'name': "Valentine's Day (repeatable)",
   'link': "https://wiki.the-west.net/wiki/Valentine's Day (repeatable)"

}, {

   'id': 2015,
   'type': 2,
   'name': 'Easter (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Easter (repeatable)'

}, {

   'id': 2016,
   'type': 2,
   'name': 'Independence Day (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Independence Day (repeatable)'

}, {

   'id': 2017,
   'type': 2,
   'name': 'Halloween (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Halloween (repeatable)'

}, {

   'id': 2018,
   'type': 2,
   'name': 'The West has a birthday! (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/The West has a birthday! (repeatable)'

}, {

   'id': 2019,
   'type': 2,
   'name': 'Anti diet week (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Anti diet week (repeatable)'

}, {

   'id': 2020,
   'type': 2,
   'name': 'Attack of the Wogons (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Attack of the Wogons (repeatable)'

}, {

   'id': 2021,
   'type': 2,
   'name': "Christopher's parade (repeatable)",
   'link': "https://wiki.the-west.net/wiki/Christopher's parade (repeatable)"

}, {

   'id': 2022,
   'type': 2,
   'name': 'Friendship week (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Friendship week (repeatable)'

}, {

   'id': 2023,
   'type': 2,
   'name': 'A pawful of kittens (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/A pawful of kittens (repeatable)'

}, {

   'id': 2024,
   'type': 2,
   'name': 'Labor Day (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Labor Day (repeatable)'

}, {

   'id': 2025,
   'type': 2,
   'name': 'A Western Nightmare (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/A Western Nightmare (repeatable)'

}, {

   'id': 2026,
   'type': 2,
   'name': 'The perfect heist (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/The perfect heist (repeatable)'

}, {

   'id': 2027,
   'type': 2,
   'name': "New Year's Eve (repeatable)",
   'link': "https://wiki.the-west.net/wiki/New Year's Eve (repeatable)"

}, {

   'id': 2028,
   'type': 2,
   'name': 'Gold rush (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Gold rush (repeatable)'

}, {

   'id': 2029,
   'type': 2,
   'name': 'Christmas spirit (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/Christmas spirit (repeatable)'

}, {

   'id': 2030,
   'type': 2,
   'name': 'A holiday spook (repeatable)',
   'link': 'https://wiki.the-west.net/wiki/A holiday spook (repeatable)'

}];

(function($) {

   $(document).ready(function() {
       function populateQuests(filteredQuests) {
           $('#questContainer').empty();
           filteredQuests.forEach(function(quest) {
               var $span, $a;
               if (quest.type === 1) {
                   $span = $('', {
                       class: 'normal_quest',
                       text: quest.name
                   });
               } else if (quest.type === 2) {
                   $span = $('', {
                       class: 'repeatable_quest',
                       text: quest.name
                   });
               }
               $a = $('<a>', {
                   href: quest.link,
                   target: '_blank'
               }).append($span);
               $('#questContainer').append($a);
           });
       }
       $('#QsearchBox').on('keyup', function() {
           var searchValue = $(this).val().toLowerCase();
           var filteredQuests = QuestsDict.filter(function(quest) {
               return quest.name.toLowerCase().includes(searchValue);
           });
           populateQuests(filteredQuests);
       });
       $('.quickSortQuest').on('click', function() {
           $('.tw2gui_selectbox').toggle();
       });
       $('.tw2gui_selectbox_content span').on('click', function() {
           var sortOption = $(this).text();
           var sortedQuests = sortQuests(QuestsDict, sortOption);
           populateQuests(sortedQuests);
           $('.tw2gui_selectbox').hide();
       });
       function sortQuests(quests, option) {
           switch (option) {
               case 'Sort by ID (Desc)':
                   return quests.sort((a, b) => b.id - a.id);
               case 'Sort by ID (Asc)':
                   return quests.sort((a, b) => a.id - b.id);
               case 'Sort by A-Z (Desc)':
                   return quests.sort((a, b) => b.name.localeCompare(a.name));
               case 'Sort by A-Z (Asc)':
                   return quests.sort((a, b) => a.name.localeCompare(b.name));
               default:
                   return quests;
           }
       }
       populateQuests(QuestsDict);
   });

})(jQuery);