{"id":3231,"date":"2024-03-28T01:14:58","date_gmt":"2024-03-27T23:14:58","guid":{"rendered":"https:\/\/shibalogia.info\/?p=3231"},"modified":"2025-10-05T17:13:55","modified_gmt":"2025-10-05T14:13:55","slug":"shiban-pentugeneraattori","status":"publish","type":"post","link":"https:\/\/shibalogia.info\/?p=3231","title":{"rendered":"Shiban pentugeneraattori"},"content":{"rendered":"    <div class=\"wp-block-bplugins-custom-html\" id='bPluginsCustomHtml-1'>\r\n    <!DOCTYPE html>\n<html lang=\"fi\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Lonkkakirjaingeneraattori<\/title>\n    <style>\n        .genotype-container {\n            display: flex;\n            margin-bottom: 20px;\n        }\n        .genotype-select {\n            flex: 1;\n            margin-right: 10px;\n            text-align: center;\n        }\n        .genotype-image {\n            display: block;\n            max-width: 100px;\n            margin: 2px auto;\n        }\n        .puppy {\n            display: inline-block;\n            text-align: center;\n            margin: 1px;\n        }\n        .puppyzero {\n            text-align: center;\n        }\n        .puppy-row {\n            display: flex;\n            flex-wrap: wrap;\n            justify-content: flex-start;\n        }\n        .genotype-text {\n            font-weight: bold;\n            margin-top: 1px;\n        }\n        .disease-text {\n            font-size: 0.5em;\n            color: #555;\n            margin-top: 0;\n        }\n        button[type=\"submit\"] {\n            position: relative;  \n            top: -25px;\n        }\n        label {\n            font-weight: bold;\n        }\n        .lonkka-text {\n            position: relative;\n            display: block;\n            margin: 0;\n            padding: 0;\n            font-weight: bold;\n        }\n        .disease-list {\n            list-style-type: none;\n            margin: 0;\n            padding: 0;\n            font-size: 0.9em;\n            line-height: 1.2;\n        }\n        .disease-list li {\n            padding-left: 0;\n            display: inline-block;\n        }\n        .disease-list span {\n            display: inline-block;\n        }\n        .puppy img {\n            margin-top: 5px;\n            margin-bottom: 5px;\n        }\n        .puppy span {\n            margin-top: 0;\n            margin-bottom: 2px;\n        }\n    <\/style>\n<\/head>\n\n<body>\n\n<form id=\"genotypeForm\">\n        <div class=\"genotype-container\">\n            <div class=\"genotype-select\">\n                <label for=\"parent1\">Uroksen A-lokus:<\/label>\n                <select id=\"parent1\" name=\"parent1\" required>\n                    <option value=\"DY\/DY\">(DY\/DY) Punainen<\/option>\n                    <option value=\"DY\/SY\">(DY\/SY) Punainen<\/option>\n                    <option value=\"DY\/AG\">(DY\/AG) Punainen<\/option>\n                    <option value=\"DY\/BB\">(DY\/BB) Punainen<\/option>\n                    <option value=\"SY\/SY\">(SY\/SY) Punaseesami<\/option>\n                    <option value=\"SY\/AG\">(SY\/AG) Punaseesami<\/option>\n                    <option value=\"SY\/BB\">(SY\/BB) Punaseesami<\/option>\n                    <option value=\"AG\/AG\">(AG\/AG) Mustaseesami<\/option>\n                    <option value=\"AG\/BB\">(AG\/BB) Mustaseesami<\/option>\n                    <option value=\"BB\/BB\">(BB\/BB) Black &#038; Tan<\/option>\n                <\/select>\n                <label for=\"parent1E\">Uroksen E-lokus:<\/label>\n                <select id=\"parent1E\" name=\"parent1E\" required>\n                    <option value=\"VARI\/VARI\">(E\/E) Ei kanna valkoista<\/option>\n                    <option value=\"VARI\/VALK\">(E\/e) Kantaa valkoista<\/option>\n                    <option value=\"VALK\/VALK\">(e\/e) On valkoinen<\/option>\n                <\/select>\n                <img decoding=\"async\" id=\"parent1Image\" class=\"genotype-image\" src=\"https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayaydark.jpg\" alt=\"Oletuskuva\">\n                <div id=\"parent1Genotype\" class=\"parent-genotype\"><\/div>\n            <\/div>\n\n            <div class=\"genotype-select\">\n                <label for=\"parent2\">Nartun A-lokus:<\/label>\n                <select id=\"parent2\" name=\"parent2\" required>\n                      <option value=\"DY\/DY\">(DY\/DY) Punainen<\/option>\n                    <option value=\"DY\/SY\">(DY\/SY) Punainen<\/option>\n                    <option value=\"DY\/AG\">(DY\/AG) Punainen<\/option>\n                    <option value=\"DY\/BB\">(DY\/BB) Punainen<\/option>\n                    <option value=\"SY\/SY\">(SY\/SY) Punaseesami<\/option>\n                    <option value=\"SY\/AG\">(SY\/AG) Punaseesami<\/option>\n                    <option value=\"SY\/BB\">(SY\/BB) Punaseesami<\/option>\n                    <option value=\"AG\/AG\">(AG\/AG) Mustaseesami<\/option>\n                    <option value=\"AG\/BB\">(AG\/BB) Mustaseesami<\/option>\n                    <option value=\"BB\/BB\">(BB\/BB) Black &#038; Tan<\/option>\n                <\/select>\n                <label for=\"parent2E\">Nartun E-lokus:<\/label>\n                <select id=\"parent2E\" name=\"parent2E\" required>\n                    <option value=\"VARI\/VARI\">(E\/E) Ei kanna valkoista<\/option>\n                    <option value=\"VARI\/VALK\">(E\/e) Kantaa valkoista<\/option>\n                    <option value=\"VALK\/VALK\">(e\/e) On valkoinen<\/option>\n                <\/select>\n                <img decoding=\"async\" id=\"parent2Image\" class=\"genotype-image\" src=\"https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayaydark.jpg\" alt=\"Oletuskuva\">\n                <div id=\"parent2Genotype\" class=\"parent-genotype\"><\/div>\n            <\/div>\n        <\/div>\n\n        <br><br>\n        <button type=\"submit\">Pennuta!<\/button>\n    <\/form>\n\n\n    <div id=\"results\" class=\"puppy-container\"><\/div>\n\n    <script>\n\/\/ A-lokuksen valikon tapahtumank\u00e4sittelij\u00e4\ndocument.getElementById('parent1').addEventListener('change', function(event) {\n    updateAlocusImage(event.target);\n});\n\ndocument.getElementById('parent2').addEventListener('change', function(event) {\n    updateAlocusImage(event.target);\n});\n\n\/\/ E-lokuksen valikon tapahtumank\u00e4sittelij\u00e4\ndocument.getElementById('parent1E').addEventListener('change', function(event) {\n    updateElocusImage(event.target);\n});\n\ndocument.getElementById('parent2E').addEventListener('change', function(event) {\n    updateElocusImage(event.target);\n});\n\n\/\/ Funktiot A-lokuksen ja E-lokuksen kuvan p\u00e4ivitt\u00e4miseen\nfunction updateAlocusImage(target) {\n    var imageId = target.id + 'Image';\n    var selectedValue = target.value.trim().toUpperCase();\n    var eLocusValue = document.getElementById(target.id + 'E').value.trim().toUpperCase();\n\n    var imageUrl = getParentImageUrl(selectedValue, eLocusValue);\n    var imageElement = document.getElementById(imageId);\n\n    imageElement.src = imageUrl;\n    imageElement.classList.remove('hidden');\n    imageElement.style.display = 'block';\n}\n\nfunction updateElocusImage(target) {\n    var imageId = target.id.replace(\/E$\/, '') + 'Image';\n    var selectedValue = document.getElementById(target.id.replace(\/E$\/, '')).value.trim().toUpperCase();\n    var eLocusValue = target.value.trim().toUpperCase();\n\n    var imageUrl = getParentImageUrl(selectedValue, eLocusValue);\n    var imageElement = document.getElementById(imageId);\n\n    imageElement.src = imageUrl;\n    imageElement.classList.remove('hidden');\n    imageElement.style.display = 'block';\n}\n      \n\n\nfunction getParentImageUrl(genotypeValue, eLocusValue) {\n    var imageUrl = '';\n    \/\/ Kuvan URL-osoitteen muodostaminen genotyypin ja E-lokusarvon perusteella\n\n\n        console.log(\"Genotyyppi: \" + genotypeValue);\n        console.log(\"E-lokus: \" + eLocusValue);\n\n\n\n        switch (genotypeValue + \" \" + eLocusValue) {\n            case 'DY\/DY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayaydark.jpg';\n                break;\n            case 'DY\/DY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayaylight.jpg';\n                break;\n            case 'DY\/DY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkayay.jpg';\n                break;\n            \n            case 'DY\/SY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayaysdark.jpg';\n                break;\n            case 'DY\/SY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayayslight.jpg';\n                break;\n            case 'DY\/SY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkayays.jpg';\n                break;\n\n            \n            \n             case 'DY\/AG VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayawdark.jpg';\n                break;\n            case 'DY\/AG VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayawlight.jpg';\n                break;\n            case 'DY\/AG VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkayaw.jpg';\n                break;\n            \n             case 'DY\/BB VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayatdark.jpg';\n                break;\n            case 'DY\/BB VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayatlight.jpg';\n                break;\n            case 'DY\/BB VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkayat.jpg';\n                break;\n            \n             case 'SY\/SY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aysaysdark.jpg';\n                break;\n            case 'SY\/SY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aysayslight.jpg';\n                break;\n            case 'SY\/SY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkaysays.jpg';\n                break;\n\n              case 'SY\/AG VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aysawdark.jpg';\n                break;\n            case 'SY\/AG VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aysawlight.jpg';\n                break;\n            case 'SY\/AG VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkaysaw.jpg';\n                break;\n\n              case 'SY\/BB VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aysatdark2.jpg';\n                break;\n            case 'SY\/BB VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aysatlight2.jpg';\n                break;\n            case 'SY\/BB VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkaysat.jpg';\n                break;\n\n              case 'AG\/AG VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/awawdark2.jpg';\n                break;\n            case 'AG\/AG VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/awawlight.jpg';\n                break;\n            case 'AG\/AG VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkawaw.jpg';\n                break;\n\n              case 'AG\/BB VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/awatdark.jpg';\n                break;\n            case 'AG\/BB VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/awatlight.jpg';\n                break;\n            case 'AG\/BB VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkawat.jpg';\n                break;\n\n              case 'BB\/BB VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/atatdark.jpg';\n                break;\n            case 'BB\/BB VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/atatlight.jpg';\n                break;\n            case 'BB\/BB VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/aikvalkatat.jpg';\n                break;\n\n\n\n            \n            \/\/ Lis\u00e4\u00e4 muut tapaukset vastaavasti\n            default:\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/ayaydark.jpg';\n        }\n\n        return imageUrl;\n    }\n\n    function generateMutant() {\n        var randomNumber = Math.floor(Math.random() * 300);\n        if (randomNumber === 0) {\n            return 'MUTANTTI';\n        }\n        return null;\n    }\n\n\n      function generateBenimaru() {\n    var randomNumber = Math.floor(Math.random() * 1000);\n    if (randomNumber === 0) {\n        return 'BENIMARU';\n    }\n    return null;\n}\n\n    document.getElementById('genotypeForm').addEventListener('submit', function(event) {\n        event.preventDefault();\n\n        var parent1Genotype = document.getElementById('parent1').value.trim().toUpperCase();\n        var parent2Genotype = document.getElementById('parent2').value.trim().toUpperCase();\n        var parent1ELocus = document.getElementById('parent1E').value.trim().toUpperCase();\n        var parent2ELocus = document.getElementById('parent2E').value.trim().toUpperCase();\n\n        var puppiesCount = calculatePuppyCount();\n\n        var puppies = [];\n        for (var i = 0; i < puppiesCount; i++) {\n            var puppyGenotype = generateMutant() || generateBenimaru() || generateRandomPuppyGenotype(parent1Genotype, parent2Genotype, parent1ELocus, parent2ELocus);\n            puppies.push(puppyGenotype);\n        }\n\n        var resultsHTML = '';\n        if (puppiesCount === 0) {\n            resultsHTML += '<div class=\"puppy\">';\n            resultsHTML += '<img decoding=\"async\" src=\"https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/tyhjalaatikko.jpg\" alt=\"Kuva pentulaatikosta\"><br>';\n            resultsHTML += '<\/div>';\n        } else {\n            resultsHTML += '<div class=\"puppy-row\">';\n            puppies.forEach(function(genotype, index) {\n                var sortedGenotype = genotype.split('\/').sort((a, b) => {\n                    var order = { 'DY': 1, 'SY': 2, 'AG': 3, 'BB': 4 };\n                    return order[a] - order[b];\n                }).join('\/');\n\n              var imageData = getPuppyImageUrl(sortedGenotype);\nvar imageUrl = imageData.imageUrl; \/\/ Access imageUrl property from the returned object\nvar genotypeText = imageData.genotypeText; \/\/ Access genotypeText property from the returned object\n\nresultsHTML += '<div class=\"puppy\">';\nresultsHTML += '<img decoding=\"async\" src=\"' + imageUrl + '\" alt=\"Kuva pennusta\"><br>';\nresultsHTML += '<span class=\"genotype-text\">' + genotypeText + '<\/span><br>'; \/\/ Use genotypeText directly\nresultsHTML += '<\/div>';\n               \n             \n            });\n            resultsHTML += '<\/div>';\n        }\n\n        document.getElementById('results').innerHTML = resultsHTML;\n    });\n\n    function calculatePuppyCount() {\n        var randomNumber = Math.random() * 100;\n        if (randomNumber < 15) {\n            return 0; \/\/ Tyhj\u00e4 pentulaatikko\n        } else if (randomNumber < 22) {\n            return 1; \/\/ 1 pentu 7 %\n        } else if (randomNumber < 40) {\n            return 2; \/\/ 2 pentua 18 %\n        } else if (randomNumber < 73) {\n            return 3; \/\/ 3 pentua 33%\n        } else if (randomNumber < 94) {\n            return 4; \/\/ 4 pentua 21 %\n        } else {\n            return 5; \/\/ 5 pentua 6 %\n        }\n    }\n\n    function generateRandomPuppyGenotype(parent1Genotype, parent2Genotype, parent1ELocus, parent2ELocus) {\n        var possibleAlleles1 = parent1Genotype.split('\/');\n        var possibleAlleles2 = parent2Genotype.split('\/');\n\n        var randomIndex1 = Math.floor(Math.random() * possibleAlleles1.length);\n        var randomIndex2 = Math.floor(Math.random() * possibleAlleles2.length);\n\n        var allele1 = possibleAlleles1[randomIndex1];\n        var allele2 = possibleAlleles2[randomIndex2];\n\n        var possibleELocus1 = parent1ELocus.split('\/');\n        var possibleELocus2 = parent2ELocus.split('\/');\n\n        var randomIndexE1 = Math.floor(Math.random() * possibleELocus1.length);\n        var randomIndexE2 = Math.floor(Math.random() * possibleELocus2.length);\n\n        var eAllele1 = possibleELocus1[randomIndexE1];\n        var eAllele2 = possibleELocus2[randomIndexE2];\n\n        return allele1 + '\/' + allele2 + ' ' + eAllele1 + '\/' + eAllele2;\n    }\n\n  \n\n      function getPuppyImageUrl(genotype) {\n    var imageUrl = '';\n    var genotypeText = ''; \/\/ Lis\u00e4t\u00e4\u00e4n genotypeText-muuttuja t\u00e4h\u00e4n\n\n        switch (genotype) {\n            case 'DY\/DY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayaydark3.jpg';\n             genotypeText = 'DY\/DY E\/E';\n                break;\n             case 'DY\/DY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayaylight3.jpg';\n             genotypeText = 'DY\/DY E\/e';\n                break;\n             case 'DY\/DY VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayaylight3.jpg';\n             genotypeText = 'DY\/DY E\/e';\n                break;\n             case 'DY\/DY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuvalkayay3.jpg';\n             genotypeText = 'DY\/DY e\/e';\n                break;\n             case 'DY\/SY VARI\/VARI':\n            case 'SY\/DY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayaysdark3.jpg';\n             genotypeText = 'DY\/SY E\/E';\n                break;\n             case 'DY\/SY VARI\/VALK':\n            case 'SY\/DY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayayslight3.jpg';\n             genotypeText = 'DY\/SY E\/e';\n                break;\n             case 'DY\/SY VALK\/VARI':\n            case 'SY\/DY VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayayslight3.jpg';\n             genotypeText = 'DY\/SY E\/e';\n                break;\n             case 'DY\/SY VALK\/VALK':\n            case 'SY\/DY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuvalkayays3.jpg';\n             genotypeText = 'DY\/SY e\/e';\n                break;\n             case 'DY\/AG VARI\/VARI':\n          case 'AG\/DY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayawdark3.jpg';\n             genotypeText = 'DY\/AG E\/E';\n                break;\n             case 'DY\/AG VARI\/VALK':\n          case 'AG\/DY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayawlight3.jpg';\n             genotypeText = 'DY\/AG E\/e';\n                break;\n             case 'DY\/AG VALK\/VARI':\n          case 'AG\/DY VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayawlight3.jpg';\n             genotypeText = 'DY\/AG E\/e';\n                break;\n             case 'DY\/AG VALK\/VALK':\n          case 'AG\/DY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuvalkaysaw3.jpg';\n             genotypeText = 'DY\/AG e\/e';\n                break;\n             case 'DY\/BB VARI\/VARI':\n            case 'BB\/DY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayatdark3.jpg';\n             genotypeText = 'DY\/BB E\/E';\n                break;\n             case 'DY\/BB VARI\/VALK':\n            case 'BB\/DY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayatlight3.jpg';\n             genotypeText = 'DY\/BB E\/e';\n                break;\n             case 'DY\/BB VALK\/VARI':\n            case 'BB\/DY VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuayatlight3.jpg';\n             genotypeText = 'DY\/BB E\/e';\n                break;\n             case 'DY\/BB VALK\/VALK':\n            case 'BB\/DY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuvalkayat3.jpg';\n             genotypeText = 'DY\/BB e\/e';\n                break;\n             case 'SY\/SY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuaysaysdark3.jpg';\n             genotypeText = 'SY\/SY E\/E';\n                break;\n             case 'SY\/SY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuaysayslight3.jpg';\n             genotypeText = 'SY\/SY E\/e';\n                break;\n             case 'SY\/SY VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuaysayslight3.jpg';\n             genotypeText = 'SY\/SY E\/e';\n                break;\n             case 'SY\/SY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuvalkaysays3.jpg';\n             genotypeText = 'SY\/SY e\/e';\n                break;\n             case 'SY\/AG VARI\/VARI':\n            case 'AG\/SY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuaysawdark3.jpg';\n             genotypeText = 'SY\/AG E\/E';\n                break;\n             case 'SY\/AG VARI\/VALK':\n             case 'AG\/SY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuaysawlight3.jpg';\n             genotypeText = 'SY\/AG E\/e';\n                break;\n             case 'SY\/AG VALK\/VARI':\n            case 'AG\/SY VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuaysawlight3.jpg';\n             genotypeText = 'SY\/AG E\/e';\n                break;\n             case 'SY\/AG VALK\/VALK':\n            case 'AG\/SY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuvalkaysaw3.jpg';\n             genotypeText = 'SY\/AG e\/e';\n                break;\n             case 'SY\/BB VARI\/VARI':\n            case 'BB\/SY VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuaysatdark3.jpg';\n             genotypeText = 'SY\/BB E\/E';\n                break;\n             case 'SY\/BB VARI\/VALK':\n            case 'BB\/SY VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuaysatlight3.jpg';\n             genotypeText = 'SY\/BB E\/e';\n                break;\n             case 'SY\/BB VALK\/VARI':\n             case 'BB\/SY VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuaysatlight3.jpg';\n             genotypeText = 'SY\/BB E\/e';\n                break;\n             case 'SY\/BB VALK\/VALK':\n            case 'BB\/SY VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuvalkaysat3.jpg';\n             genotypeText = 'SY\/BB e\/e';\n                break;\n             case 'AG\/AG VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuawawdark3.jpg';\n             genotypeText = 'AG\/AG E\/E';\n                break;\n             case 'AG\/AG VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuawawlight3.jpg';\n             genotypeText = 'AG\/AG E\/e';\n                break;\n             case 'AG\/AG VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuawawlight3.jpg';\n             genotypeText = 'AG\/AG E\/e';\n                break;\n             case 'AG\/AG VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuvalkawaw3.jpg';\n             genotypeText = 'AG\/AG e\/e';\n                break;\n             case 'AG\/BB VARI\/VARI':\n            case 'BB\/AG VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuawatdark3.jpg';\n             genotypeText = 'AG\/BB E\/E';\n                break;\n             case 'AG\/BB VARI\/VALK':\n            case 'BB\/AG VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuawatlight3.jpg';\n             genotypeText = 'AG\/BB E\/e';\n                break;\n             case 'AG\/BB VALK\/VARI':\n            case 'BB\/AG VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuawatlight3.jpg';\n             genotypeText = 'AG\/BB E\/e';\n                break;\n             case 'AG\/BB VALK\/VALK':\n            case 'BB\/AG VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuvalkawat3.jpg';\n             genotypeText = 'AG\/BB e\/e';\n                break;\n             case 'BB\/BB VARI\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuatatdark3.jpg';\n             genotypeText = 'BB\/BB E\/E';\n                break;\n             case 'BB\/BB VARI\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuatatlight3.jpg';\n             genotypeText = 'BB\/BB E\/e';\n                break;\n             case 'BB\/BB VALK\/VARI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuatatlight3.jpg';\n             genotypeText = 'BB\/BB E\/e';\n                break;\n             case 'BB\/BB VALK\/VALK':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/valkoinenpentuatat3.jpg';\n             genotypeText = 'BB\/BB e\/e';\n                break;\n            \n            case 'MUTANTTI':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/mutantti3.jpg';\n            genotypeText = 'MUTANTTI';\n                break;\n            case 'BENIMARU':\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/benimaru3.jpg';\n            genotypeText = 'REBORN';\n                break;\n            default:\n                imageUrl = 'https:\/\/shibalogia.info\/wp-content\/uploads\/2024\/03\/pentuoletus.jpg';\n                break; }\n    \n    \/\/ Palautetaan objekti, joka sis\u00e4lt\u00e4\u00e4 imageUrl ja genotypeText\n    return { imageUrl: imageUrl, genotypeText: genotypeText };\n}\n    <\/script>\n\n<\/body>\n\n<\/html>\n\n\n    <\/div>\r\n    \n\n\n<p>V\u00e4rikenneli on avattu yleis\u00f6lle. Voit nyt itse kasvattaa shibapentueita ja havainnoida, miten shiban perusv\u00e4rit periytyv\u00e4t.&nbsp;A-lokuksen ensimm\u00e4inen geenimuoto m\u00e4\u00e4r\u00e4\u00e4 n\u00e4kyv\u00e4n v\u00e4rin (esim. <strong>DY<\/strong>\/BB). Toinen geenimuoto kertoo, mit\u00e4 v\u00e4ri\u00e4 shiba kantaa (esim. DY\/<strong>BB<\/strong>). E-lokuksesta riippuu, ilmeneek\u00f6 A-lokuksen v\u00e4ri vai peittyyk\u00f6 se valkoisen alle. Pentu perii omiin lokuksiinsa yhden geenimuodon uroksen valikoimasta ja yhden geenimuodon nartun valikoimasta.<\/p>\n\n\n\n<p>Pentugeneraattoria voi helposti soveltaa my\u00f6s mink\u00e4 tahansa yksigeenisen perinn\u00f6llisen sairauden visualisointiin. Jos black &amp; tan -v\u00e4ritys olisi peittyv\u00e4sti periytyv\u00e4 sairaus, niin miten usein kahdelle kantajalle (DY\/BB E\/E) todellisuudessa syntyy mustia pentuja?<\/p>\n\n\n\n<p><em>Pennuta harkiten. Arvosta jokaista syntyv\u00e4\u00e4 pentuasi. Viisi pennutusta yhdelle nartulle on maksimi.<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>DY\/DY<\/strong>&nbsp;(punainen, kantaa punaista, ex-AyAy)<\/li>\n\n\n\n<li><strong>DY\/SY<\/strong>&nbsp;(punainen, kantaa punaseesamia, ex-Ay\/Ays)<\/li>\n\n\n\n<li><strong>DY\/AG<\/strong>&nbsp;(punainen, kantaa mustaseesamia, ex-Ay\/aw)<\/li>\n\n\n\n<li><strong>DY\/BB<\/strong>&nbsp;(punainen, kantaa bl\u00e4kk\u00e4ri\u00e4, ex-Ay\/at)<\/li>\n\n\n\n<li><strong>SY\/SY<\/strong>&nbsp;(punaseesami, kantaa punaseesamia, ex-Ays\/Ays)<\/li>\n\n\n\n<li><strong>SY\/AG<\/strong>&nbsp;(punaseesami, kantaa mustaseesamia, ex-Ays\/aw)<\/li>\n\n\n\n<li><strong>SY\/BB<\/strong>&nbsp;(punaseesami, kantaa bl\u00e4kk\u00e4ri\u00e4, ex-Ays\/at)<\/li>\n\n\n\n<li><strong>AG\/AG<\/strong>&nbsp;(mustaseesami, kantaa mustaseesamia, ex-aw\/aw)<\/li>\n\n\n\n<li><strong>AG\/BB<\/strong>&nbsp;(mustaseesami, kantaa bl\u00e4kk\u00e4ri\u00e4, ex-aw\/at)<\/li>\n\n\n\n<li><strong>BB\/BB<\/strong>&nbsp;(bl\u00e4kk\u00e4ri, kantaa bl\u00e4kk\u00e4ri\u00e4, ex-at\/at)<\/li>\n<\/ul>\n\n\n\n<p><strong>DY<\/strong>&nbsp;= Dominant Yellow.&nbsp;<strong>SY<\/strong>&nbsp;= Shaded Yellow.&nbsp;<strong>AG<\/strong>&nbsp;= Agouti.&nbsp;<strong>BB<\/strong>&nbsp;= Black Back.<\/p>\n\n\n\n<p>Punaseesamit pennut n\u00e4ytt\u00e4v\u00e4t kuulemma viel\u00e4 pentulaatikossa punaisilta, ja varsinainen seesamis\u00e4vytys kehittyy my\u00f6hemmin. Samoin monet punaiset pennut n\u00e4ytt\u00e4v\u00e4t alkuun tummilta valeseesameilta mutta vaalenevat kasvaessaan. Seesamishibaan tarvitaan v\u00e4ltt\u00e4m\u00e4tt\u00e4 se SY tai AG. Kuvien v\u00e4ritykset on viitteellisi\u00e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Generaattoriteht\u00e4vi\u00e4 shiban v\u00e4rigenetiikasta<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mink\u00e4lainen shiba saa aina samanv\u00e4risi\u00e4 pentuja riippumatta siit\u00e4, mink\u00e4lainen toinen vanhempi on?<\/li>\n\n\n\n<li>Kumpi seesamiv\u00e4ritys on dominoivampi eli peitt\u00e4\u00e4 toisen seesamiv\u00e4rityksen alleen?<\/li>\n\n\n\n<li>Mit\u00e4 muuta huomaat shiban v\u00e4rien dominoivuudesta ja peittymisest\u00e4, kun tutkit tummia ja vaaleita v\u00e4rityksi\u00e4?<\/li>\n\n\n\n<li>Mik\u00e4 on todenn\u00e4k\u00f6isin tapa saada punaseesameja pentuja punaiselta shibalta, joka kantaa punaseesamia?<\/li>\n\n\n\n<li>Mink\u00e4 v\u00e4riset vanhemmat voivat saada kesken\u00e4\u00e4n koko v\u00e4risuoran: punaisen, seesamin, bl\u00e4kk\u00e4rin ja valkoisen pennun?<\/li>\n\n\n\n<li>Mink\u00e4 v\u00e4riset vanhemmat voivat saada kesken\u00e4\u00e4n t\u00e4ydellisen v\u00e4risuoran: punaisen, punaseesamin, mustaseesamin ja bl\u00e4kk\u00e4rin pennun?<\/li>\n\n\n\n<li>Mit\u00e4 muille v\u00e4reille tapahtuu, kun valkoinen shiba saa pentuja?<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Muuta tietoa pentugeneraattorista<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Generaattori oikeasti arpoo pennuille vanhempien v\u00e4rialleelit. Yleens\u00e4 n\u00e4m\u00e4 on perustuneet listaan todenn\u00e4k\u00f6isyyksist\u00e4.<\/li>\n\n\n\n<li>Pentujen m\u00e4\u00e4r\u00e4 per pentue perustuu todellisiin rekattujen pentujen m\u00e4\u00e4riin viimeisen kuuden vuoden aikana.<\/li>\n\n\n\n<li>Pentugeneraattorin koodasi ChatGPT. Uskomatonta mutta totta: vaikein osa koko generaattorissa oli saada vanhemman kuva vaihtumaan my\u00f6s E-lokuksen valikosta. Tuohon meni oikeasti yli puolet kokonaisajasta. Se oli v\u00e4litt\u00f6m\u00e4sti perill\u00e4 siit\u00e4, mik\u00e4 on pentugeneraattorin idea (mik\u00e4 oli eritt\u00e4in h\u00e4mment\u00e4v\u00e4\u00e4) mutta ei sitten osannut tehd\u00e4 kahta tavallista valikkoa (mik\u00e4 oli k\u00e4sitt\u00e4m\u00e4t\u00f6nt\u00e4). Opin samalla muutakin teko\u00e4lyn sielunel\u00e4m\u00e4st\u00e4. <\/li>\n\n\n\n<li>Pentunassut ja vanhemmat tuotti j\u00e4lleen kennel Craiyon. Jos huomaat, ett\u00e4 jokin kuva on ilmiselv\u00e4sti per\u00e4isin jostakin netin valokuvasta, niin ilmaise asia.<\/li>\n\n\n\n<li>M\u00e4 olen aina halunnu tehd\u00e4 t\u00e4llasen, mutta en ole osannut koodata eik\u00e4 joka genotyypille ole l\u00f6ytynyt valokuvia. What happen, yht'\u00e4kki\u00e4 nettiin ilmestyy teko\u00e4ly, joka ratkaisee molemmat ongelmat.   <\/li>\n\n\n\n<li>Generaattorin jalostuskoirilta puuttuu kokonaan sukupuolileimat, mutta ainakin pentueet ovat h\u00e4kellytt\u00e4v\u00e4n tasalaatuisia! Kasvatin ite varmaan 5000 pentua testauksen aikana : D<\/li>\n\n\n\n<li>Jos tulee vastaan bugeja, niin raportoi t\u00e4h\u00e4n. Koodin saa hy\u00f6dynt\u00e4\u00e4 ja jatkojalostaa muille japanilaisroduille. Nykyisell\u00e4\u00e4n generaattori toimii my\u00f6s kishulle ja shikokulle. Akita ja hokkaido tarvitsevat brindlen takia K-lokuksen.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>V\u00e4rikenneli on avattu yleis\u00f6lle. Voit nyt itse kasvattaa shibapentueita ja havainnoida, miten shiban perusv\u00e4rit periytyv\u00e4t.&nbsp;A-lokuksen ensimm\u00e4inen geenimuoto m\u00e4\u00e4r\u00e4\u00e4 n\u00e4kyv\u00e4n v\u00e4rin (esim. DY\/BB). Toinen geenimuoto kertoo, mit\u00e4 v\u00e4ri\u00e4 shiba kantaa (esim. DY\/BB). E-lokuksesta riippuu, ilmeneek\u00f6 A-lokuksen v\u00e4ri vai peittyyk\u00f6 se valkoisen alle. Pentu perii omiin lokuksiinsa yhden geenimuodon uroksen valikoimasta ja yhden geenimuodon nartun valikoimasta. Pentugeneraattoria [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3857,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[30,60,55,36,33,1],"tags":[],"class_list":["post-3231","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-genetiikka","category-kiinnitetty-artikkeli","category-varikartat","category-varit","category-viihde","category-yleinen"],"_links":{"self":[{"href":"https:\/\/shibalogia.info\/index.php?rest_route=\/wp\/v2\/posts\/3231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shibalogia.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shibalogia.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shibalogia.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shibalogia.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3231"}],"version-history":[{"count":204,"href":"https:\/\/shibalogia.info\/index.php?rest_route=\/wp\/v2\/posts\/3231\/revisions"}],"predecessor-version":[{"id":5156,"href":"https:\/\/shibalogia.info\/index.php?rest_route=\/wp\/v2\/posts\/3231\/revisions\/5156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shibalogia.info\/index.php?rest_route=\/wp\/v2\/media\/3857"}],"wp:attachment":[{"href":"https:\/\/shibalogia.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shibalogia.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shibalogia.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}