Horror: Storm hits cruise ship and forces it to list 45 degrees – ‘It was like the Titanic’ (video)

Canadian passenger Dan So, 41, filmed people around him frantically trying to stand as objects fell and shattered around them as Royal Caribbean’s Explorer of the Seas capsized violently during a storm off its coast of Africa last week – with objects around them smashing to the ground.

“It was like the Titanic,” So told Kennedy News and Media, seeing “people screaming and glasses breaking.”

“I thought this could be the end and the ship would go into the water,” he added of the alarming “45 degree” tilt.

“I took out my mobile phone and texted my colleagues, telling them I don’t know what’s going to happen and to be careful. I was writing my last message, thinking I was going to die,” added the 41-year-old, who was traveling on a cruise ship for the first time in his life.

One passenger was reportedly injured during the bad weather as passengers were taken to their rooms for an hour for necessary checks to be carried out.

The ship made an unscheduled stop in Las Palmas to help the injured passenger before continuing on its way, the company said.

Melania Trump: Not moving into the White House – “This time it will be different”

Black Friday: What consumers should watch out for

Brazil: Man strapped with explosives detonates outside Supreme Court

Kostas Martakis: “When I entered, some people told me to undress”

#Horror #Storm #hits #cruise #ship #forces #list #degrees #Titanic #video

How ⁣can you implement ⁣error handling when loading ​scripts asynchronously in JavaScript integrations?

The provided code snippet‍ seems to be a JavaScript segment that deals with loading various advertising scripts, integrations, and initializations ⁤for services like Google AdSense, OneSignal, Disqus, and others within a web page. Below is a structured breakdown, along with some adjustments to enhance code readability and functionality.

### Code Breakdown and Improvements

1. **Conditional Removal of AdSense for Mobile**:

​ ```javascript

​ } else {

document.querySelectorAll('.adsense-for-mobile').forEach(function(e) {

‍ e.querySelector('.adsbygoogle').remove();

});

}

⁣```

2. **AdSense Slot Handling**:

⁣ ```javascript

const⁢ adSenseSlots =‍ document.querySelectorAll('.adsbygoogle');

const adSenseSlotCount =‍ adSenseSlots.length;

‌if⁢ (adSenseSlotCount‌ > 0) {

adSenseSlots.forEach(function(e) {

⁢ ⁢ // Placeholder for asynchronous​ loading logic

​ // `asyncLoadScript`⁣ function should be defined elsewhere in the code.

⁢ });

⁣ }

⁣ ```

3. ⁣**Phaistos Adman Initialization**:

```javascript

⁢‍ window.AdmanQueue = window.AdmanQueue || [];

​ AdmanQueue.push(function() {

⁢ Adman.adunit({ id: 338, h: /* height value here */ });

});

```

4. **OneSignal Setup**:

‍ ```javascript

window.OneSignalDeferred = window.OneSignalDeferred || [];

‌ OneSignalDeferred.push(function(OneSignal) {

OneSignal.init({

⁢​ appId: "487cc53b-3b66-4f84-8803-3a3a133043ab",

});

});

```

5. **Disqus Configuration**:

```javascript

‌ var disqus_config = function() {

⁢ ⁣ this.page.url = /* URL here */;

‌ this.page.identifier = 1565586;

};

setTimeout(function() {

​ ⁣ (function() {

var d​ = document,

⁢ s =⁣ d.createElement('script');

‍ ⁢ s.src = /* ⁣Disqus script URL here */;

⁣ s.setAttribute('data-timestamp', +new Date());

‍ (d.head⁢ || d.body).appendChild(s);

⁣ })();

‌ }, 3000);

```

6. ‍**Other Advertising Integrations**:

‍- The commented sections for CleverCore, Taboola, Google AdSense, Glomex, and Vidoomy should be completed⁣ with valid URLs and handling⁣ logic.

⁣ - Where placeholders are indicated, ensure you replace these with ⁢actual ⁤script URLs or logic intended to be executed.

### Suggestions for Missing Parts:

1. **Define `asyncLoadScript`** function:

Ensure you have a definition ⁣for `asyncLoadScript` to load scripts asynchronously.

```javascript

function​ asyncLoadScript(url) {

‌ ⁣‍ var script⁤ = document.createElement('script');

‍ script.src = url;

script.async = true;

document.head.appendChild(script);

}

```

2. **Error‌ Handling**: Consider adding error handling for script loading to handle potential failures gracefully.

3. ⁣**Commenting**: ⁣Increase code documentation by adding comments that explain the purpose of larger blocks of code or potentially complex operations.

4. **Testing**: Ensure each ‍component (Adman,⁣ OneSignal,⁢ Disqus, etc.) is properly tested in a staging environment before deploying to production to ensure that⁢ they do not conflict with each other.

By following these guidelines, you can enhance the functionality, readability, and⁣ maintainability of your‍ web integration scripts.

Leave a Replay