Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

The PHP page provided generates the board and places tiles. There is also a selectable link called 'Action 4:', this button places shrimp on the board. Part 1 Provided with the following code file,...

1 answer below »
The PHP page provided generates the board and places tiles. There is also a selectable link called 'Action 4:', this button places shrimp on the board.
Part 1
Provided with the following code file, modify the Game Log link so that it displays a text file called GameLog.txt. When shrimp are added to the board, append the board location to GameLog.txt. It should read something like "A shrimp was placed on D3". Whenever a new game is started the GameLog should be cleared.
Part 2
Add another link next to the GameLog link called Save Game. Whenever this is activated it writes the contents of the board to a text file called SavedGame.txt. Create a new PHP page that displays the contents of this file that is linked to the main PHP page.
Answered Same Day May 08, 2021

Solution

Sanghamitra answered on May 17 2021
159 Votes
WebScrapping/HW7.php




        
        
        SpielByWeb: Reef Encounter         Logged in as: flarfickjonathan

        
        
        Home | FAQ        Create Game | Games List | Your Games (1) | Stats        Forum | Updates | Donate        Profile | Edit | Going Away? | Log out

        
        SpeilByWeb costs $36 per month to host. If you enjoy playing games here, please consider donating towards this expense. Thank you!
        


        
        Game 111623: BSU_WADER_2:THE_RETURN        Round 1

        
        
        Gamelog | Save Game |Messages | Notepad | Bug Report        Rules | BoardGameGeek | Buy at Funagain        Game Started on Thu Feb 20, 2020 8:06 pm
Game Updated on Thu Feb 20, 2020 8:07 pm
        Â 
        Â 
        
        
        
        Player        Consumed
Polyp Tiles        Shrimp
Eaten        Initial larva cubes
        
        Â         WaderTheGame
        Â         â€”        
        1x                Â         1x                Â 

        
        Â         flarfickjonathan
        Â         â€”        
        1x                Â         1x                Â 
                
        
        Behind Your Screen
        
        Polyp Tiles:                
        1x        
        
        1x        
        
        3x        
        
        Larva Cubes:                        
        1x        
                
        1x        

        Shrimp:                
                
        
        In Your Pa
otfish
        
        
        1x                Â 
        
        
        Choose an Action
        
         Action 1: Eat one coral and a shrimp with your pa
otfish

(once at start of turn only)

        
        
Action 2: Play a larva cube and polyp tiles

(only once per turn)         Action 6: Exchange a consumed polyp tile for a larva cube of the same colour (larva cube must be played immediately)
         Action 3: Play a second larva cube and polyp tiles

(only once per turn)         Action 7: Acquire and play an alga cylinde
        
                                                                                                        
                                                                                                            
                                                                                                            
                                                                                                            
                                                                                                            Action 4: Introduce a shrimp
(only once per turn)
                                                                                                            
Action 8: Exchange a larva cube for a polyp tile of the same colou
         Action 5: Move or remove a shrimp         Action 9: Do none of the above

        
        
Action 10: Collect a larva cube and polyp tiles from the open sea

(must do once, at end of turn only)

        
                                                                            
                                                                            
                                                                            
                                                                                        
[Start your turn over]
        
        
        Game Board
        
        
        Â 

                
                
1        Â 

                
                
2        Â 

                
                
3        Â 

                
                
4        Â 

                
                
5        Â 

                
                
6        Â 

                
                
7        Â 

                
                
8        Â 

                
                
9        Â 

                
                
10

                                                                                                        
                                                                                                        

        
        

+9 in supply
        
        
        
        

+8 in supply
        
        
        
        

+7 in supply
        
        
        
        

+9 in supply
        
        
        
        

+8 in supply
        
        
                Alga Cylinder Space

none


        
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                                

                                                                                                                                

                                                                                                                                
                                                                                                                                $choice=$_GET["act"];    
                                                                                                                                
                                                                                                                                $board0 = a
ay("x", "x", "x", "", "", "", "x",
                                                                                                                                                "x", "", "", "y", "", "", "x",
                                                                                                                                                "", "", "x", "", "w", "", "",
                                                                                                                                                "", "g", "", "_", "", "x", "",
                                                                                                                                                "", "", "p", "x", "o", "", "",
                                                                                                                                                "", "", "", "", "", "", "");
                                                                                                                                            
                                                                                                                                $bordA
[0] = $board0;
                                                                                                                                
                                                                                                                                

                                                                                                                                

                                                                                                                                

                                                                                                                                
                                                                                                                                function cel2top($cellnum)
                                                                                                                                {
                                                                                                                                    $x = (int)($cellnum / 7);
                                                                                                                                    return ($x * 40) + 27;
                                                                                                                                }
                                                                                                                                function cel2left($cellnum)
                                                                                                                                {
                                                                                                                                    $x = $cellnum % 7;
                                                                                                                                    return ($x * 40) + 32;
                                                                                                                                }                                
                                                                                                                                

                                                                                                                                

                                                                                                                                

                                                                                                                                $leftxaxix= a
ay('A','B','C','D','E','F','G');
                                                                                                                                
                                                                                                                                for($r = 0; $r < 6; $r++)
                                                                                                                                {
                                                                                                                                    $yaxis = $r+1;
                                                                                                                                    for($c = 0; $c < 7; $c++)    
                                                                                                                                    {
                                                                                                                                        $xaxix = $leftxaxix[$c];
                                                                                                                                        $cel = $r * 7 + $c;
                                                                                                                                        $el = $bordA
[0][$cel];
                                                                                                                                        if(strlen($el) > 1)    
                                                                                                                                        {
                                                                                                                                            $e = $el[0];
                                                                                                                                            $shr = $el[1];
                                                                                                                                        }
                                                                                                                                        else
                                                                                                                                        {
                                                                                                                                            $e = $el;
                                                                                                                                            $shr = NULL;    
                                                                                                                                        }
                                                                                                                                        if($choice == "dropshrimp" && $_GET["b"] == 0)
                                                                                                                                        {
                                                                                                                                            
                                                                                                                                            $cell = $_GET["cell"];
                                                                                                                                            if ($cell == $cel)
                                                                                                                                            {
                                                                                                                                                $e = "R";
                                                                                                                                            }
                                                                                                                                        }
                                                                                                                                        switch ($e)        
                                                                                                                                        {
                                                                                                                                            case "w": $num = 0;
eak;
                                                                                                                                            case "y": $num = 1;
eak;
                                                                                                                                            case "o": $num = 2;
eak;
                                                                                                                                            case "p": $num = 3;
eak;
                                                                                                                                            case "g": $num = 4;
eak;
                                                                                                                                            case "R": $shr = $e;
eak;
                                                                                                                                            default: $num = -1;
                                                                                                                                        }
                                                                                                                                        if ($num >= 0)
                                                                                                                                        {
                                                                                                                                            echo "";
                                                                                                                                            echo "" . "";    
                                                                                                                                        }
                                                                                                                                        if (!is_null($shr))    
Place shrimp image
                                                                                                                                        {
                                                                                                                                            echo " ";
                                                                                                                                         generateGamelog($xaxix,$yaxis);
                                                                                                                                        
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                        if ($choice == "shrimpmode")
                                                                                                                                        {
                                                                                                                                            if ($bordA
[0][$cel] != "x")    
When action 4 is selected place anchor tags to place shrimp
                                                                                                                                            {
                                                                                                                                                echo "";
                                                                                                                                                echo " [+] ";
                                                                                                                                                
                                                                                                                                            }
                                                                                                                                        }
                                                                                                                                    }
                                                                                                                                }
                                                                                                                            ?
                                                                                                                            A
                                                                                                                            B
                                                                                                                            C
                                                                                                                            D
                                                                                                                            E
                                                                                                                            F
                                                                                                                            G
                                                                                                                            1
                                                                                                                            2
                                                                                                                            3
                                                                                                                            4
                                                                                                                            5
                                                                                                                            6
                                                                                                                            
                                                                                                                            
        
                                                                                                                            
                                                                                                                                
                                                                                                                                
                                                                                                                                
                                                                                                                                        

                                                                                                                                        

                                                                                                                                        
                                                                                                                                        $board1 = a
ay("x", "", "", "", "", "", "x",
                                                                                                                                                        "", "", "", "o", "x", "", "",
                                                                                                                                                        "", "", "x", "", "g", "", "",
                                                                                                                                                        "", "w", "", "_", "", "", "",
                                                                                                                                                        "x", "", "p", "", "y", "", "x",
                                                                                                                                                        "x", "", "", "x", "", "", "x");
                                                                                                                                        
                                                                                                                                        $bordA
[1] = $board1;
                                                                                                                                    
                                                                                                                                        

                                                                                                                                        

                                                                                                                                        

                                                                                                                                     $rleftxaxix= a
ay('H','I','J','K','L','M','N');
                                                                                                                                        for($r = 0; $r < 6; $r++)    
                                                                                                                                        {
                                                                                                                                                $ryaxis = $r+1;
                                                                                                                                            for($c = 0; $c < 7; $c++)
                                                                                                                                            {
                                                                                                                                                $rxaxix = $rleftxaxix[$c];
                                                                                                                                                $cel = $r * 7 + $c;
                                                                                                                                                $el = $bordA
[1][$cel];
                                                                                                                                                if(strlen($el) > 1)
                                                                                                                                                {
                                                                                                                                                    $e = $el[0];
                                                                                                                                                    $shr = $el[1];
                                                                                                                                                }
                                                                                                                                                else
                                                                                                                                                {
                                                                                                                                                    $e = $el;
                                                                                                                                                    $shr = NULL;
                                                                                                                                                }
                                                                                                                                                if ($choice == "dropshrimp" && $_GET["b"] == 1)
                                                                                                                                                {
                                                                                                                                                    $cell = $_GET["cell"];
                                                                                                                                                    if ($cell == $cel)
                                                                                                                                                    {
                                                                                                                                                        $e = "R";
                                                                                                                                                    }
                                                                                                                                                }
                                                                                                                                                switch ($e)
                                                                                                                                                {
                                                                                                                                                    case "w": $num = 0;
eak;
                                                                                                                                                    case "y": $num = 1;
eak;
                                                                                                                                                    case "o": $num = 2;
eak;
                                                                                                                                                    case "p": $num = 3;
eak;
                                                                                                                                                    case "g": $num = 4;
eak;
                                                                                                                                                    case "R": $shr = $e;
eak;
                                                                                                                                                    default: $num = -1;
                                                                                                                                                }
                                                                                                                                                if ($num >= 0)
                                                                                                                                                {
                                                                                                                                                    echo "";
                                                                                                                                                    echo "" . "";
                                                                                                                                                }
                                                                                                                                                if (!is_null($shr))    
Place shrimp image
                                                                                                                                                {
                                                                                                                                                    echo " ";
                                                                                                                                                 generateGamelog($rxaxix,$ryaxis);
                                                                                                                                                }
                                                                                                                                                if ($choice == "shrimpmode")
                                                                                                                                                {
                                                                                                                                                    if ($bordA
[1][$cel] != "x")    
When action 4 is selected place anchor tags to place shrimp
                                                                                                                                                    {
                                                                                                                                                        echo "";
                                                                                                                                                        echo " [+] ";
                                                                                                                                                    }
                                                                                                                                                }    
text-align: center; line-height: 30px; font-size:20px;
                                                                                                                                            }
                                                                                                                                        }
                                                                                                                                    ?
                                                                                                                                    
                                                                                                                                    H
                                                                                                                                    I
                                                                                                                                    J
                                                                                                                                    K
                                                                                                                                    L
                                                                                                                                    M
                                                                                                                                    N
                                                                                                                                    1
                                                                                                                                    2
                                                                                                                                    3
                                                                                                                                    4
                                                                                                                                    5
                                                                                                                                    6
                                                                                                                                    
                                                                                                                            

        
        Reef Encounter was designed by Richard Breese; published by What's Your Game? and Z-Man Games.

Originally published by R&D Games with original artwork (used here at SpielByWeb) by Juliet Breese;.


If you enjoy playing Reef Encounter please support the designer and publisher by buying a copy of the game.

It is available in USA from Funagain Games, and from other retailers around the world.


Play-by-Web coding by Mikael Sheikh based on code by Aaron Ma
iner.        
        Users Registered:                10980
        Games Waiting:                278
        Games in Progress:                128
        Completed Games:                99695


WebScrapping/REHack_files/a1.jpg
WebScrapping/REHack_files/a10.jpg
WebScrapping/REHack_files/a10d.jpg
WebScrapping/REHack_files/a1d.jpg
WebScrapping/REHack_files/a2.jpg
WebScrapping/REHack_files/a2d.jpg
WebScrapping/REHack_files/a3.jpg
WebScrapping/REHack_files/a3d.jpg
WebScrapping/REHack_files/a4.jpg
WebScrapping/REHack_files/a4d.jpg
WebScrapping/REHack_files/a5.jpg
WebScrapping/REHack_files/a5d.jpg
WebScrapping/REHack_files/a6.jpg
WebScrapping/REHack_files/a6d.jpg
WebScrapping/REHack_files/a7.jpg
WebScrapping/REHack_files/a7d.jpg
WebScrapping/REHack_files/a8.jpg
WebScrapping/REHack_files/a8d.jpg
WebScrapping/REHack_files/a9d.jpg
WebScrapping/REHack_files
0.jpg
WebScrapping/REHack_files
1.jpg
WebScrapping/REHack_files
2.jpg
WebScrapping/REHack_files
3.jpg
WebScrapping/REHack_files/ct00.gif
WebScrapping/REHack_files/ct01.gif
WebScrapping/REHack_files/ct10.gif
WebScrapping/REHack_files/ct11.gif
WebScrapping/REHack_files/ct20.gif
WebScrapping/REHack_files/ct21.gif
WebScrapping/REHack_files/ct30.gif
WebScrapping/REHack_files/ct31.gif
WebScrapping/REHack_files/ct40.gif
WebScrapping/REHack_files/ct41.gif
WebScrapping/REHack_files/ct50.gif
WebScrapping/REHack_files/ct51.gif
WebScrapping/REHack_files/ct60.gif
WebScrapping/REHack_files/ct61.gif
WebScrapping/REHack_files/ct70.gif
WebScrapping/REHack_files/ct71.gif
WebScrapping/REHack_files/ct80.gif
WebScrapping/REHack_files/ct81.gif
WebScrapping/REHack_files/ct90.gif
WebScrapping/REHack_files/ct91.gif
WebScrapping/REHack_files/cyb.gif
WebScrapping/REHack_files/cyg.gif
WebScrapping/REHack_files/cyp.gif
WebScrapping/REHack_files/cyr.gif
WebScrapping/REHack_files/G.gif
WebScrapping/REHack_files/ga.js.download
(function(){var E;var g=window,n=document,p=function(a){var b=g._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===g["ga-disable-"+a])return!0;try{var c=g.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(f){}a=[];b=n.cookie.split(";");c=/^\s*AMP_TOKEN=\s*(.*?)\s*$/;for(var d=0;d
.length;d++){var e=b[d].match(c);e&&a.push(e[1])}for(b=0;
a.length;b++)if("$OPT_OUT"==decodeURIComponent(a[b]))return!0;return!1};var q=function(a){return encodeURIComponent?encodeURIComponent(a).replace(/\(/g,"%28").replace(/\)/g,"%29"):a},r=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,u=/(^|\.)doubleclick\.net$/i;function Aa(a,b){switch(b){case 0:return""+a;case 1:return 1*a;case 2:return!!a;case 3:return 1E3*a}return a}function Ba(a){return"function"==typeof a}function Ca(a){return void 0!=a&&-1<(a.constructor+"").indexOf("String")}function F(a,b){return void 0==a||"-"==a&&!b||""==a}function Da(a){if(!a||""==a)return"";for(;a&&-1<" \n\r\t".indexOf(a.charAt(0));)a=a.substring(1);for(;a&&-1<" \n\r\t".indexOf(a.charAt(a.length-1));)a=a.substring(0,a.length-1);return a}
function Ea(){return Math.round(2147483647*Math.random())}function Fa(){}function G(a,b){if(encodeURIComponent instanceof Function)return b?encodeURI(a):encodeURIComponent(a);H(68);return escape(a)}function I(a){a=a.split("+").join(" ");if(decodeURIComponent instanceof Function)try{return decodeURIComponent(a)}catch(b){H(17)}else H(68);return unescape(a)}var Ga=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)};
function Ia(a,b){if(a){var c=J.createElement("script");c.type="text/javascript";c.async=!0;c.src=a;c.id=b;a=J.getElementsByTagName("script")[0];a.parentNode.insertBefore(c,a);return c}}function K(a){return a&&0?a[b-1]:""}var nf=function(){this.prefix="ga.";this.values={}};nf.prototype.set=function(a,b){this.values[this.prefix+a]=b};nf.prototype.get=function(a){return this.values[this.prefix+a]};
nf.prototype.contains=function(a){return void 0!==this.get(a)};function Ka(a){0==a.indexOf("www.")&&(a=a.substring(4));return a.toLowerCase()}
function La(a,b){var c={url:a,protocol:"http",host:"",path:"",R:new nf,anchor:""};if(!a)return c;var d=a.indexOf(":
");0<=d&&(c.protocol=a.substring(0,d),a=a.substring(d+3));d=a.search("/|\\?|#");if(0<=d)c.host=a.substring(0,d).toLowerCase(),a=a.substring(d);else return c.host=a.toLowerCase(),c;d=a.indexOf("#");0<=d&&(c.anchor=a.substring(d+1),a=a.substring(0,d));d=a.indexOf("?");0<=d&&(Na(c.R,a.substring(d+1)),a=a.substring(0,d));c.anchor&&b&&Na(c.R,c.anchor);a&&"/"==a.charAt(0)&&(a=a.substring(1));
c.path=a;return c}
function Oa(a,b){function c(a){var b=(a.hostname||"").split(":")[0].toLowerCase(),c=(a.protocol||"").toLowerCase();c=1*a.port||("http:"==c?80:"https:"==c?443:"");a=a.pathname||"";0==a.indexOf("/")||(a="/"+a);return[b,""+c,a]}b=b||J.createElement("a");b.href=J.location.href;var d=(b.protocol||"").toLowerCase(),e=c(b),f=b.search||"",Be=d+"
"+e[0]+(e[1]?":"+e[1]:"");0==a.indexOf("
")?a=d+a:0==a.indexOf("/")?a=Be+a:a&&0!=a.indexOf("?")?0>a.split("/")[0].indexOf(":")&&(a=Be+e[2].substring(0,e[2].lastIndexOf("/"))+
"/"+a):a=Be+e[2]+(a||f);b.href=a;d=c(b);return{protocol:(b.protocol||"").toLowerCase(),host:d[0],port:d[1],path:d[2],query:b.search||"",url:a||""}}function Na(a,b){function c(b,c){a.contains(b)||a.set(b,[]);a.get(b).push(c)}b=Da(b).split("&");for(var d=0;d
.length;d++)if(b[d]){var e=b[d].indexOf("=");0>e?c(b[d],"1"):c(b[d].substring(0,e),b[d].substring(e+1))}}
function Pa(a,b){return F(a)||"["==a.charAt(0)&&"]"==a.charAt(a.length-1)?"-":a.indexOf(J.domain+(b&&"/"!=b?b:""))==(0==a.indexOf("http:
")?7:0==a.indexOf("https:
")?8:0)?"0":a};var Qa=0;function Ra(a,b,c){1<=Qa||1<=100*Math.random()||ld()||(a=["utmt=e
or","utme
="+a,"utmwv=5.7.2","utmn="+Ea(),"utmsp=1"],b&&a.push("api="+b),c&&a.push("msg="+G(c.substring(0,100))),M.w&&a.push("aip=1"),Sa(a.join("&")),Qa++)};var Ta=0,Ua={};function N(a){return Va("x"+Ta++,a)}function Va(a,b){Ua[a]=!!b;return a}
var Wa=N(),Xa=Va("anonymizeIp"),Ya=N(),$a=N(),ab=N(),
=N(),O=N(),P=N(),cb=N(),db=N(),eb=N(),fb=N(),gb=N(),hb=N(),ib=N(),jb=N(),kb=N(),lb=N(),nb=N(),ob=N(),pb=N(),qb=N(),
=N(),sb=N(),tb=N(),ub=N(),vb=N(),wb=N(),xb=N(),yb=N(),zb=N(),Ab=N(),Bb=N(),Cb=N(),Db=N(),Eb=N(),Fb=N(!0),Gb=Va("cu
encyCode"),v=Va("storeGac"),Hb=Va("page"),Ib=Va("title"),Jb=N(),Kb=N(),Lb=N(),Mb=N(),Nb=N(),Ob=N(),Pb=N(),Qb=N(),Rb=N(),Q=N(!0),Sb=N(!0),Tb=N(!0),Ub=N(!0),Vb=N(!0),Wb=N(!0),Zb=N(!0),$b=N(!0),ac=N(!0),bc=N(!0),cc=N(!0),
R=N(!0),dc=N(!0),ec=N(!0),fc=N(!0),gc=N(!0),hc=N(!0),ic=N(!0),jc=N(!0),S=N(!0),kc=N(!0),lc=N(!0),mc=N(!0),nc=N(!0),oc=N(!0),pc=N(!0),qc=N(!0),rc=Va("campaignParams"),sc=N(),tc=Va("hitCallback"),uc=N();N();var vc=N(),wc=N(),xc=N(),yc=N(),zc=N(),Ac=N(),Bc=N(),Cc=N(),Dc=N(),Ec=N(),Fc=N(),Gc=N(),Hc=N(),Ic=N();N();
var Mc=N(),Nc=N(),Yb=N(),Jc=N(),Kc=N(),Lc=Va("utmtCookieName"),Cd=Va("displayFeatures"),Oc=N(),of=Va("gtmid"),Oe=Va("uaName"),Pe=Va("uaDomain"),Qe=Va("uaPath"),pf=Va("linkid"),w=N(),x=N(),y=N(),z=N();var Re=function(){function a(a,c,d){T(qf.prototype,a,c,d)}a("_createTracker",qf.prototype.hb,55);a("_getTracker",qf.prototype.oa,0);a("_getTrackerByName",qf.prototype.u,51);a("_getTrackers",qf.prototype.pa,130);a("_anonymizeIp",qf.prototype.aa,16);a("_forceSSL",qf.prototype.la,125);a("_getPlugin",Pc,120)},Se=function(){function a(a,c,d){T(U.prototype,a,c,d)}Qc("_getName",$a,58);Qc("_getAccount",Wa,64);Qc("_visitCode",Q,54);Qc("_getClientInfo",ib,53,1);Qc("_getDetectTitle",lb,56,1);Qc("_getDetectFlash",
jb,65,1);Qc("_getLocalGifPath",wb,57);Qc("_getServiceMode",xb,59);V("_setClientInfo",ib,66,2);V("_setAccount",Wa,3);V("_setNamespace",Ya,48);V("_setAllowLinker",fb,11,2);V("_setDetectFlash",jb,61,2);V("_setDetectTitle",lb,62,2);V("_setLocalGifPath",wb,46,0);V("_setLocalServerMode",xb,92,void 0,0);V("_setRemoteServerMode",xb,63,void 0,1);V("_setLocalRemoteServerMode",xb,47,void 0,2);V("_setSampleRate",vb,45,1);V("_setCampaignTrack",kb,36,2);V("_setAllowAnchor",gb,7,2);V("_setCampNameKey",ob,41);V("_setCampContentKey",
tb,38);V("_setCampIdKey",nb,39);V("_setCampMediumKey",
,40);V("_setCampNOKey",ub,42);V("_setCampSourceKey",qb,43);V("_setCampTermKey",sb,44);V("_setCampCIdKey",pb,37);V("_setCookiePath",P,9,0);V("_setMaxCustomVariables",yb,0,1);V("_setVisitorCookieTimeout",cb,28,1);V("_setSessionCookieTimeout",db,26,1);V("_setCampaignCookieTimeout",eb,29,1);V("_setRefe
erOve
ide",Jb,49);V("_setSiteSpeedSampleRate",Dc,132);V("_storeGac",v,143);a("_trackPageview",U.prototype.Fa,1);a("_trackEvent",U.prototype.F,4);
a("_trackPageLoadTime",U.prototype.Ea,100);a("_trackSocial",U.prototype.Ga,104);a("_trackTrans",U.prototype.Ia,18);a("_sendXEvent",U.prototype.ib,78);a("_createEventTracker",U.prototype.ia,74);a("_getVersion",U.prototype.qa,60);a("_setDomainName",U.prototype.B,6);a("_setAllowHash",U.prototype.va,8);a("_getLinkerUrl",U.prototype.na,52);a("_link",U.prototype.link,101);a("_linkByPost",U.prototype.ua,102);a("_setTrans",U.prototype.za,20);a("_addTrans",U.prototype.$,21);a("_addItem",U.prototype.Y,19);
a("_clearTrans",U.prototype.ea,105);a("_setTransactionDelim",U.prototype.Aa,82);a("_setCustomVar",U.prototype.wa,10);a("_deleteCustomVar",U.prototype.ka,35);a("_getVisitorCustomVar",U.prototype.ra,50);a("_setXKey",U.prototype.Ca,83);a("_setXValue",U.prototype.Da,84);a("_getXKey",U.prototype.sa,76);a("_getXValue",U.prototype.ta,77);a("_clearXKey",U.prototype.fa,72);a("_clearXValue",U.prototype.ga,73);a("_createXObj",U.prototype.ja,75);a("_addIgnoredOrganic",U.prototype.W,15);a("_clearIgnoredOrganic",
U.prototype.ba,97);a("_addIgnoredRef",U.prototype.X,31);a("_clearIgnoredRef",U.prototype.ca,32);a("_addOrganic",U.prototype.Z,14);a("_clearOrganic",U.prototype.da,70);a("_cookiePathCopy",U.prototype.ha,30);a("_get",U.prototype.ma,106);a("_set",U.prototype.xa,107);a("_addEventListener",U.prototype.addEventListener,108);a("_removeEventListener",U.prototype.removeEventListener,109);a("_addDevId",U.prototype.V);a("_getPlugin",Pc,122);a("_setPageGroup",U.prototype.ya,126);a("_trackTiming",U.prototype.Ha,
124);a("_initData",U.prototype.initData,2);a("_setVar",U.prototype.Ba,22);V("_setSessionTimeout",db,27,3);V("_setCookieTimeout",eb,25,3);V("_setCookiePersistence",cb,24,1);a("_setAutoTrackOutbound",Fa,79);a("_setTrackOutboundSubdomains",Fa,81);a("_setHrefExamineLimit",Fa,80)};function Pc(a){var b=this.plugins_;if(b)return b.get(a)}
var T=function(a,b,c,d){a[b]=function(){try{return void 0!=d&&H(d),c.apply(this,arguments)}catch(e){throw Ra("exc",b,e&&e.name),e;}}},Qc=function(a,b,c,d){U.prototype[a]=function(){try{return H(c),Aa(this.a.get(b),d)}catch(e){throw Ra("exc",a,e&&e.name),e;}}},V=function(a,b,c,d,e){U.prototype[a]=function(f){try{H(c),void 0==e?this.a.set(b,Aa(f,d)):this.a.set(b,e)}catch(Be){throw Ra("exc",a,Be&&Be.name),Be;}}},Te=function(a,b){return{type:b,target:a,stopPropagation:function(){throw"aborted";}}};var Rc=new RegExp(/(^|\.)doubleclick\.net$/i),Sc=function(a,b){return Rc.test(J.location.hostname)?!0:"/"!==b?!1:0!=a.indexOf("www.google.")&&0!=a.indexOf(".google.")&&0!=a.indexOf("google.")||-1),c=a.c(P,"/");Sc(b,c)&&a.stopPropagation()};var Zc=function(){var a={},b={},c=new Uc;this.g=function(a,b){c.add(a,b)};var d=new Uc;this.v=function(a,b){d.add(a,b)};var e=!1,f=!1,Be=!0;this.T=function(){e=!0};this.j=function(a){this.load();this.set(sc,a,!0);a=new Vc(this);e=!1;d.cb(this);e=!0;b={};this.store();a.Ja()};this.load=function(){e&&(e=!1,this.Ka(),Wc(this),f||(f=!0,c.cb(this),Xc(this),Wc(this)),e=!0)};this.store=function(){e&&(f?(e=!1,Xc(this),e=!0):this.load())};this.get=function(c){Ua[c]&&this.load();return void 0!==b[c]?b[c]:a[c]};
this.set=function(c,d,e){Ua[c]&&this.load();e?b[c]=d:a[c]=d;Ua[c]&&this.store()};this.Za=function(b){a[b]=this.b(b,0)+1};this.b=function(a,b){a=this.get(a);return void 0==a||""===a?b:1*a};this.c=function(a,b){a=this.get(a);return void 0==a?b:a+""};this.Ka=function(){if(Be){var b=this.c(
,""),c=this.c(P,"/");Sc(b,c)||(a[O]=a[hb]&&""!=b?Yc(b):1,Be=!1)}}};Zc.prototype.stopPropagation=function(){throw"aborted";};
var Vc=function(a){var b=this;this.fb=0;var c=a.get(tc);this.Ua=function(){0
.fb&&c&&(b.fb--,b.fb||c())};this.Ja=function(){!b.fb&&c&&setTimeout(c,10)};a.set(uc,b,!0)};function $c(a,b){b=b||[];for(var c=0;c
.length;c++){var d=b[c];if(""+a==d||0==d.indexOf(a+"."))return d}return"-"}
var bd=function(a,b,c){c=c?"":a.c(O,"1");b=b.split(".");if(6!==b.length||ad(b[0],c))return!1;c=1*b[1];var d=1*b[2],e=1*b[3],f=1*b[4];b=1*b[5];if(!(0<=c&&0"1");var d=b.split(".");if(4!==d.length||ad(d[0],c))d=null;a.set(cc,d?1*d[1]:0);a.set(R,d?1*d[2]:10);a.set(dc,d?1*d[3]:a.get(ab));return null!=d||!ad(b,c)},fd=function(a,b){var c=G(a.c(Tb,"")),d=[],e=a.get(Fb);if(!b&&e){for(b=0;
e.length;b++){var f=e[b];f&&1==f.scope&&d.push(b+"="+G(f.name)+"="+G(f.value)+"=1")}0.length||ad(b[0],c))return!1;b=b.slice(1).join(".").split("|");0
.length&&
a.set(Tb,I(b[0]));if(1>=b.length)return!0;b=b[1].split(-1==b[1].indexOf(",")?"^":",");for(c=0;c
.length;c++){var d=b[c].split("=");if(4==d.length){var e={};e.name=I(d[1]);e.value=I(d[2]);e.scope=1;a.get(Fb)[d[0]]=e}}return!0},hd=function(a,b){return(b=Ue(a,b))?[a.b(O,1),a.b(ec,0),a.b(fc,1),a.b(gc,1),b].join("."):""},Ue=function(a){function b(b,e){F(a.get(b))||(b=a.c(b,""),b=b.split(" ").join("%20"),b=b.split("+").join("%20"),c.push(e+"="+b))}var c=[];b(ic,"utmcid");b(nc,"utmcsr");b(S,"utmgclid");
(kc,"utmgclsrc");b(lc,"utmdclid");b(mc,"utmdsid");b(jc,"utmccn");b(oc,"utmcmd");b(pc,"utmctr");b(qc,"utmcct");return c.join("|")},id=function(a,b,c){c=c?"":a.c(O,"1");b=b.split(".");if(5
.length||ad(b[0],c))return a.set(ec,void 0),a.set(fc,void 0),a.set(gc,void 0),a.set(ic,void 0),a.set(jc,void 0),a.set(nc,void 0),a.set(oc,void 0),a.set(pc,void 0),a.set(qc,void 0),a.set(S,void 0),a.set(kc,void 0),a.set(lc,void 0),a.set(mc,void 0),!1;a.set(ec,1*b[1]);a.set(fc,1*b[2]);a.set(gc,1*b[3]);Ve(a,b.slice(4).join("."));
eturn!0},Ve=function(a,b){function c(a){return(a=b.match(a+"=(.*?)(?:\\|utm|$)"))&&2==a.length?a[1]:void 0}function d(b,c){c?(c=e?I(c):c.split("%20").join(" "),a.set(b,c)):a.set(b,void 0)}-1==b.indexOf("=")&&(b=I(b));var e="2"==c("utmcvr");d(ic,c("utmcid"));d(jc,c("utmccn"));d(nc,c("utmcsr"));d(oc,c("utmcmd"));d(pc,c("utmctr"));d(qc,c("utmcct"));d(S,c("utmgclid"));d(kc,c("utmgclsrc"));d(lc,c("utmdclid"));d(mc,c("utmdsid"))},ad=function(a,b){return b?a!=b:!/^\d+$/.test(a)};var Uc=function(){this.filters=[]};Uc.prototype.add=function(a,b){this.filters.push({name:a,s:b})};Uc.prototype.cb=function(a){try{for(var b=0;
this.filters.length;b++)this.filters[b].s.call(W,a)}catch(c){}};function jd(a){100!=a.get(vb)&&a.get(Q)%1E4>=100*a.get(vb)&&a.stopPropagation()}function kd(a){ld(a.get(Wa))&&a.stopPropagation()}function...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here